diva.graph.basic
Class BasicGraphModel.BasicCompositeNode
java.lang.Object
diva.util.BasicPropertyContainer
diva.graph.basic.BasicGraphModel.Intermediate
diva.graph.basic.BasicGraphModel.BasicNode
diva.graph.basic.BasicGraphModel.BasicCompositeNode
- All Implemented Interfaces:
- CompositeNode, Graph, Node, PropertyContainer, SemanticObjectContainer
- Enclosing class:
- BasicGraphModel
private static class BasicGraphModel.BasicCompositeNode
- extends BasicGraphModel.BasicNode
- implements CompositeNode
A simple composite node implementation.
Field Summary |
private java.util.ArrayList |
_nodes
The nodes that this composite node
contains. |
Method Summary |
void |
add(Node n)
|
int |
getNodeCount()
Return a count of the nodes this graph contains. |
java.util.Iterator |
nodes()
Return an iterator over the nodes that this graph contains. |
void |
remove(Node n)
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
_nodes
private java.util.ArrayList _nodes
- The nodes that this composite node
contains.
BasicGraphModel.BasicCompositeNode
public BasicGraphModel.BasicCompositeNode(java.lang.Object userObject)
- Construct an empty composite nodes with
the given semantic object.
add
public void add(Node n)
getNodeCount
public int getNodeCount()
- Description copied from interface:
Graph
- Return a count of the nodes this graph contains.
- Specified by:
getNodeCount
in interface Graph
nodes
public java.util.Iterator nodes()
- Description copied from interface:
Graph
- Return an iterator over the nodes that this graph contains.
- Specified by:
nodes
in interface Graph
remove
public void remove(Node n)
toString
public java.lang.String toString()
- Overrides:
toString
in class BasicGraphModel.BasicNode