public class OptDirectedEdge extends OptGraphable implements DirectedEdge
DirectedEdge
,
Serialized FormModifier 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, setVisited
public OptDirectedEdge(OptDirectedNode in, OptDirectedNode out)
in
- Optimized in node.out
- Optimized out node.public DirectedNode getInNode()
DirectedEdge
getInNode
in interface DirectedEdge
DirectedEdge.getInNode()
public DirectedNode getOutNode()
DirectedEdge
getOutNode
in interface DirectedEdge
DirectedEdge.getOutNode()
public Node getNodeA()
Edge
getNodeA
in interface Edge
Edge.getNodeA()
public Node getNodeB()
Edge
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 int compareNodes(Edge other)
Edge
compareNodes
in interface Edge
Edge.compareNodes(Edge)
public Iterator<? extends Graphable> getRelated()
Graphable
getRelated
in interface Graphable
Graphable.getRelated()
public Iterator<? extends Graphable> getInRelated()
DirectedGraphable
getInRelated
in interface DirectedGraphable
DirectedGraphable.getInRelated()
public Iterator<? extends Graphable> getOutRelated()
DirectedGraphable
getOutRelated
in interface DirectedGraphable
DirectedGraphable.getOutRelated()
Copyright © 1996–2023 Geotools. All rights reserved.