ConcreteController
- the type of the controller which manage this node.public abstract class AbstractNode<ConcreteController extends Controller> extends java.lang.Object implements Node
Node
for a protocol.Modifier and Type | Field and Description |
---|---|
protected java.util.List<Device> |
children
List of child.
|
protected ConcreteController |
controller
The node's controller.
|
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() |
ConcreteController |
getController()
Get the controller to which this device is connected.
|
Device |
getParent() |
protected final java.util.List<Device> children
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()
public Device getParent()
public ConcreteController getController()