ConcreteController
- the type of the controller which manage this node.public abstract class AbstractNode<ConcreteController extends Controller> extends Object implements Node
Node
for a protocol.Modifier and Type | Field and Description |
---|---|
protected List<Device> |
children
List of child.
|
protected ConcreteController |
controller
The node's controller.
|
UNKNOWN_NAME
Constructor and Description |
---|
AbstractNode(ConcreteController controller)
Create a new node.
|
Modifier and Type | Method and Description |
---|---|
void |
addChild(Device child)
Add a profile as a child of this node.
|
Device[] |
getChildren()
Returns the children of this device in the hardware topology.
|
ConcreteController |
getController()
Get the controller to which this device is connected.
|
Device |
getParent()
Returns the parent of this device in the hardware topology.
|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getDescriptor, getName
protected final ConcreteController extends Controller controller
public AbstractNode(ConcreteController controller)
controller
- the associated controllerpublic void addChild(Device child)
getChildren()
.child
- a new child for this nodepublic Device[] getChildren()
Device
getChildren
in interface Device
public ConcreteController getController()