org.minetti.astrodevice.common.device
Class DeviceNode

java.lang.Object
  extended by org.minetti.astrodevice.common.device.DeviceNode
All Implemented Interfaces:
Serializable

public final class DeviceNode
extends Object
implements Serializable

Node of device tree.

Author:
Jean-Philippe MINETTI
See Also:
Serialized Form

Constructor Summary
DeviceNode(DeviceNode parent, String name, DeviceSignature signature, Collection<DeviceNode> children)
          Constructor.
 
Method Summary
 Collection<DeviceNode> getChildren()
          Returns the child nodes.
 String getName()
          Returns the node name.
 DeviceNode getParent()
          Returns the parent node.
 DeviceSignature getSignature()
          Returns the signature used for recognize the device.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DeviceNode

public DeviceNode(DeviceNode parent,
                  String name,
                  DeviceSignature signature,
                  Collection<DeviceNode> children)
Constructor.

Parameters:
parent - Parent node.
name - Node name.
signature - Signature used for recognize the device (can be NULL).
children - Child nodes (can be NULL).
Method Detail

getParent

public DeviceNode getParent()
Returns the parent node.

Returns:
Parent node.

getName

public String getName()
Returns the node name.

Returns:
Node name.

getSignature

public DeviceSignature getSignature()
Returns the signature used for recognize the device.

Returns:
Signature used for recognize the device (can be NULL).

getChildren

public Collection<DeviceNode> getChildren()
Returns the child nodes.

Returns:
Child nodes (never NULL).

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2012 astroDevice. All Rights Reserved.