| Modifier and Type | Field and Description |
|---|---|
protected List<IConnection<T,D>> |
connections
connections to other nodes in a net
|
protected EventController |
controller
controller, handling notification events for other nodes
|
protected T |
core
the nodes real object
|
| Constructor and Description |
|---|
ANode() |
| Modifier and Type | Method and Description |
|---|---|
IConnection<T,D> |
add(ANode<T,D> destination)
convenience to add a connections. delegates to
connect(ANode, Object) with null descriptor. |
IConnection<T,D> |
connect(ANode<T,D> destination,
D descriptor)
creates a new connection
|
protected IConnection<T,D> |
createConnection(ANode<T,D> destination,
D descriptor)
creates a connection instance
|
boolean |
equals(Object obj) |
IConnection<T,D> |
getConnection(INode<T,D> destination)
getConnection
|
protected INode<T,D> |
getConnection(T item) |
protected List<T> |
getConnectionItems()
getChildNodes
|
List<IConnection<T,D>> |
getConnections()
return a list of all children
|
EventController |
getController() |
T |
getCore()
current nodes core or content
|
int |
hashCode() |
INode<T,D> |
path(String... nodeFilters)
goes through the given path filter
|
protected T core
protected List<IConnection<T,D>> connections
protected EventController controller
public EventController getController()
public List<IConnection<T,D>> getConnections()
INodegetConnections in interface INode<T,D>connections.public IConnection<T,D> getConnection(INode<T,D> destination)
destination - public IConnection<T,D> add(ANode<T,D> destination)
connect(ANode, Object) with null descriptor.public IConnection<T,D> connect(ANode<T,D> destination, D descriptor)
destination - node to connect todescriptor - connection descriptionprotected IConnection<T,D> createConnection(ANode<T,D> destination, D descriptor)
destination - node to connect todescriptor - connection descriptionprotected List<T> getConnectionItems()
public INode<T,D> path(String... nodeFilters)
INodeCopyright © 2012–2018. All rights reserved.