|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectdiva.util.BasicPropertyContainer
diva.graph.basic.BasicGraphModel.Intermediate
diva.graph.basic.BasicGraphModel.BasicNode
private static class BasicGraphModel.BasicNode
A simple node implementation.
Field Summary | |
---|---|
private java.util.ArrayList |
_in
The edges into this node. |
private java.util.ArrayList |
_out
The edges out of this node. |
private CompositeNode |
_parent
The parent of this node. |
Constructor Summary | |
---|---|
BasicGraphModel.BasicNode(java.lang.Object userObject)
Create a node containing some user data. |
Method Summary | |
---|---|
void |
addInEdge(Edge e)
|
void |
addOutEdge(Edge e)
|
Graph |
getParent()
Return the graph parent of this node. |
java.util.Iterator |
inEdges()
Return an iterator over the in edges of this node. |
java.util.Iterator |
outEdges()
Return an iterator over the out edges of this node. |
void |
removeInEdge(Edge e)
|
void |
removeOutEdge(Edge e)
|
void |
setParent(Graph parent)
Set the graph parent of this node. |
java.lang.String |
toString()
|
Methods inherited from class diva.graph.basic.BasicGraphModel.Intermediate |
---|
getSemanticObject, setSemanticObject |
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, wait, wait, wait |
Methods inherited from interface diva.util.SemanticObjectContainer |
---|
getSemanticObject, setSemanticObject |
Methods inherited from interface diva.util.PropertyContainer |
---|
getProperty, propertyNames, setProperty |
Field Detail |
---|
private java.util.ArrayList _in
private java.util.ArrayList _out
private CompositeNode _parent
Constructor Detail |
---|
public BasicGraphModel.BasicNode(java.lang.Object userObject)
Method Detail |
---|
public void addInEdge(Edge e)
public void addOutEdge(Edge e)
public Graph getParent()
Node
getParent
in interface Node
public java.util.Iterator inEdges()
inEdges
in interface Node
public java.util.Iterator outEdges()
outEdges
in interface Node
public void removeInEdge(Edge e)
public void removeOutEdge(Edge e)
public void setParent(Graph parent)
Node
setParent
in interface Node
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |