|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.geotools.graph.structure.basic.BasicGraphable org.geotools.graph.structure.basic.BasicDirectedEdge
Basic implementation of DirectedEdge.
Field Summary |
Fields inherited from interface org.geotools.graph.structure.Edge |
EQUAL_NODE_ORIENTATION, OPPOSITE_NODE_ORIENTATION, UNEQUAL_NODE_ORIENTATION |
Constructor Summary | |
BasicDirectedEdge(DirectedNode in,
DirectedNode out)
Contstructs a new DirectedEdge. |
Method Summary | |
int |
compareNodes(Edge other)
Compares the node orientation of the edge with another edge. |
DirectedNode |
getInNode()
Returns the originating (in) node of the edge. |
java.util.Iterator |
getInRelated()
Returns an iterator over the in edges of the in node. |
Node |
getNodeA()
Returns the in node. |
Node |
getNodeB()
Returns the out node. |
Node |
getOtherNode(Node node)
Returns one of the two nodes of an edge. |
DirectedNode |
getOutNode()
Returns the terminating (out) node of the edge. |
java.util.Iterator |
getOutRelated()
Returns an iterator over the out edges of the out node. |
java.util.Iterator |
getRelated()
Returns an iterator over all edges incident to both the in and out nodes. |
void |
reverse()
Removes the edge from the out list of the in node and from the in list of the out node. |
Methods inherited from class org.geotools.graph.structure.basic.BasicGraphable |
getCount, getID, getObject, isVisited, setCount, setID, setObject, setVisited, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.geotools.graph.structure.Graphable |
getCount, getID, getObject, isVisited, setCount, setID, setObject, setVisited |
Constructor Detail |
public BasicDirectedEdge(DirectedNode in, DirectedNode out)
in
- The in node of the edge.out
- The out node of the edge.Method Detail |
public DirectedNode getInNode()
DirectedEdge
getInNode
in interface DirectedEdge
DirectedEdge.getInNode()
public DirectedNode getOutNode()
DirectedEdge
getOutNode
in interface DirectedEdge
DirectedEdge.getOutNode()
public Node getNodeA()
getNodeA
in interface Edge
Edge.getNodeA()
public Node getNodeB()
getNodeB
in interface Edge
Edge.getNodeB()
public Node getOtherNode(Node node)
Edge
getOtherNode
in interface Edge
node
- The node opposite of the node to return.
Edge.getOtherNode(Node)
public void reverse()
reverse
in interface Edge
Edge.reverse()
public java.util.Iterator getRelated()
getRelated
in interface Graphable
Graphable.getRelated()
public java.util.Iterator getInRelated()
getInRelated
in interface DirectedGraphable
DirectedGraphable.getInRelated()
public java.util.Iterator getOutRelated()
getOutRelated
in interface DirectedGraphable
DirectedGraphable.getOutRelated()
public int compareNodes(Edge other)
Edge
compareNodes
in interface Edge
Edge.compareNodes(Edge)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |