|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.geotools.graph.structure.opt.OptGraphable
org.geotools.graph.structure.opt.OptEdge
Optimized implementation of Edge.
Edge,
Serialized Form| Nested Class Summary | |
class |
OptEdge.RelatedIterator
|
| Field Summary |
| Fields inherited from interface org.geotools.graph.structure.Edge |
EQUAL_NODE_ORIENTATION, OPPOSITE_NODE_ORIENTATION, UNEQUAL_NODE_ORIENTATION |
| Constructor Summary | |
OptEdge(OptNode nodeA,
OptNode nodeB)
Constructs a new optimized edge. |
|
| Method Summary | |
int |
compareNodes(Edge other)
Compares the node orientation of the edge with another edge. |
Node |
getNodeA()
Returns the A node of the edge. |
Node |
getNodeB()
Returns the B node of the edge. |
Node |
getOtherNode(Node node)
Returns one of the two nodes of an edge. |
java.util.Iterator |
getRelated()
Returns an iterator over any related components. |
void |
reverse()
Reverses the node orientation of the edge. |
| Methods inherited from class org.geotools.graph.structure.opt.OptGraphable |
getCount, getID, getObject, isVisited, setCount, setID, setObject, setVisited |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.geotools.graph.structure.Graphable |
getCount, getID, getObject, isVisited, setCount, setID, setObject, setVisited |
| Constructor Detail |
public OptEdge(OptNode nodeA,
OptNode nodeB)
nodeA - A node of edge.nodeB - B node of edge.| Method Detail |
public Node getNodeA()
Edge
getNodeA in interface EdgeEdge.getNodeA()public Node getNodeB()
Edge
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()
Edge
reverse in interface EdgeEdge.reverse()public int compareNodes(Edge other)
Edge
compareNodes in interface EdgeEdge.compareNodes(Edge)public java.util.Iterator getRelated()
Graphable
getRelated in interface GraphableGraphable.getRelated()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||