public class OptEdge extends OptGraphable implements Edge
Edge,
Serialized Form| Modifier and Type | Class and Description |
|---|---|
class |
OptEdge.RelatedIterator |
EQUAL_NODE_ORIENTATION, OPPOSITE_NODE_ORIENTATION, UNEQUAL_NODE_ORIENTATION| Constructor and Description |
|---|
OptEdge(OptNode nodeA,
OptNode nodeB)
Constructs a new optimized edge.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
Iterator |
getRelated()
Returns an iterator over any related components.
|
void |
reverse()
Reverses the node orientation of the edge.
|
getCount, getID, getObject, isVisited, setCount, setID, setObject, setVisitedpublic Node getNodeA()
EdgegetNodeA in interface EdgeEdge.getNodeA()public Node getNodeB()
EdgegetNodeB in interface EdgeEdge.getNodeB()public Node getOtherNode(Node node)
EdgegetOtherNode in interface Edgenode - The node opposite of the node to return.Edge.getOtherNode(Node)public void reverse()
Edgereverse in interface EdgeEdge.reverse()public int compareNodes(Edge other)
EdgecompareNodes in interface EdgeEdge.compareNodes(Edge)public Iterator getRelated()
GraphablegetRelated in interface GraphableGraphable.getRelated()Copyright © 1996–2019 Geotools. All rights reserved.