|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectdiva.util.BasicPropertyContainer
diva.graphx.toolbox.BasicNode
public class BasicNode
A basic implementation of a node. This node can be a composite node, that is, it can contain other nodes. The implementation does not enforce whether a node is composite or not (eg by having a flag to say whether it is and disallowing methods that add child nodes or not). Rather, it always returns true to the isComposite() method.
Constructor Summary | |
---|---|
BasicNode()
|
Method Summary | |
---|---|
boolean |
contains(BasicNode n)
Test if the node is a child of this node |
int |
getNodeCount()
Return the number of child nodes |
BasicNode |
getParent()
Return the parent node of this node |
Iterator |
inEdges()
Return an iterator over the in edges of this node. |
Iterator |
nodes()
Return an iterator over the contained nodes. |
Iterator |
outEdges()
Return an iterator over the out edges of this node. |
Iterator |
predecessors()
Return an iterator over the predecessor nodes of this node. |
void |
setParent(BasicNode parent)
Set the parent of this node. |
Iterator |
successors()
Return an iterator over the successor nodes of this node. |
Methods inherited from class diva.util.BasicPropertyContainer |
---|
getProperty, properties, propertyNames, removeAllProperties, setProperty |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BasicNode()
Method Detail |
---|
public boolean contains(BasicNode n)
public BasicNode getParent()
public int getNodeCount()
public Iterator inEdges()
public Iterator predecessors()
public Iterator nodes()
public Iterator outEdges()
public Iterator successors()
public void setParent(BasicNode parent)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |