|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.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 DirectedEdgeDirectedEdge.getInNode()public DirectedNode getOutNode()
DirectedEdge
getOutNode in interface DirectedEdgeDirectedEdge.getOutNode()public Node getNodeA()
getNodeA in interface EdgeEdge.getNodeA()public Node getNodeB()
getNodeB in interface EdgeEdge.getNodeB()public Node getOtherNode(Node node)
Edge
getOtherNode in interface Edgenode - The node opposite of the node to return.
Edge.getOtherNode(Node)public void reverse()
reverse in interface EdgeEdge.reverse()public java.util.Iterator getRelated()
getRelated in interface GraphableGraphable.getRelated()public java.util.Iterator getInRelated()
getInRelated in interface DirectedGraphableDirectedGraphable.getInRelated()public java.util.Iterator getOutRelated()
getOutRelated in interface DirectedGraphableDirectedGraphable.getOutRelated()public int compareNodes(Edge other)
Edge
compareNodes in interface EdgeEdge.compareNodes(Edge)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||