public class OptDirectedEdge extends OptGraphable implements DirectedEdge
DirectedEdge,
Serialized Form| Modifier and Type | Class and Description |
|---|---|
class |
OptDirectedEdge.RelatedIterator
Iterator used to iterate over adjacent edges.
|
EQUAL_NODE_ORIENTATION, OPPOSITE_NODE_ORIENTATION, UNEQUAL_NODE_ORIENTATION| Constructor and Description |
|---|
OptDirectedEdge(OptDirectedNode in,
OptDirectedNode out)
Constructs a new OptDirectedEdge.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareNodes(Edge other)
Compares the node orientation of the edge with another edge.
|
DirectedNode |
getInNode()
Returns the originating (in) node of the edge.
|
Iterator<? extends Graphable> |
getInRelated()
Returns other components related through an in relationship.
|
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.
|
DirectedNode |
getOutNode()
Returns the terminating (out) node of the edge.
|
Iterator<? extends Graphable> |
getOutRelated()
Returns other components related through an out relationship.
|
Iterator<? extends Graphable> |
getRelated()
Returns an iterator over any related components.
|
void |
reverse()
Unsupported Operation.
|
getCount, getID, getObject, isVisited, setCount, setID, setObject, setVisitedpublic OptDirectedEdge(OptDirectedNode in, OptDirectedNode out)
in - Optimized in node.out - Optimized out node.public DirectedNode getInNode()
DirectedEdgegetInNode in interface DirectedEdgeDirectedEdge.getInNode()public DirectedNode getOutNode()
DirectedEdgegetOutNode in interface DirectedEdgeDirectedEdge.getOutNode()public 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 int compareNodes(Edge other)
EdgecompareNodes in interface EdgeEdge.compareNodes(Edge)public Iterator<? extends Graphable> getRelated()
GraphablegetRelated in interface GraphableGraphable.getRelated()public Iterator<? extends Graphable> getInRelated()
DirectedGraphablegetInRelated in interface DirectedGraphableDirectedGraphable.getInRelated()public Iterator<? extends Graphable> getOutRelated()
DirectedGraphablegetOutRelated in interface DirectedGraphableDirectedGraphable.getOutRelated()Copyright © 1996–2021 Geotools. All rights reserved.