ConcreteController
- the type of the controller which manage this node.public abstract class AbstractNode<ConcreteController extends ej.basedriver.Controller>
extends java.lang.Object
implements ej.basedriver.Node
Node
for a protocol.Modifier and Type | Field and Description |
---|---|
protected java.util.List<ej.ecom.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(ej.ecom.Device child)
Add a profile as a child of this node.
|
ej.ecom.Device[] |
getChildren() |
ConcreteController |
getController()
Get the controller to which this device is connected.
|
ej.ecom.Device |
getParent() |
protected final java.util.List<ej.ecom.Device> children
protected final ConcreteController extends ej.basedriver.Controller controller
public AbstractNode(ConcreteController controller)
controller
- the associated controllerpublic void addChild(ej.ecom.Device child)
getChildren()
.child
- a new child for this nodepublic ej.ecom.Device[] getChildren()
getChildren
in interface ej.ecom.Device
public ej.ecom.Device getParent()
getParent
in interface ej.ecom.Device
public ConcreteController getController()