|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectOptGraphable
OptDirectedEdge
public class OptDirectedEdge
Optimized implementation of DirectedEdge.
DirectedEdge
,
Serialized FormNested Class Summary | |
---|---|
class |
OptDirectedEdge.RelatedIterator
Iterator used to iterate over adjacent edges. |
Field Summary |
---|
Fields inherited from interface Edge |
---|
EQUAL_NODE_ORIENTATION, OPPOSITE_NODE_ORIENTATION, UNEQUAL_NODE_ORIENTATION |
Constructor Summary | |
---|---|
OptDirectedEdge(OptDirectedNode in,
OptDirectedNode out)
Constructs a new OptDirectedEdge. |
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. |
Iterator |
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 |
getOutRelated()
Returns other components related through an out relationship. |
Iterator |
getRelated()
Returns an iterator over any related components. |
void |
reverse()
Unsupported Operation. |
Methods inherited from class OptGraphable |
---|
getCount, getID, getObject, isVisited, setCount, setID, setObject, setVisited |
Methods inherited from class Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface Graphable |
---|
getCount, getID, getObject, isVisited, setCount, setID, setObject, setVisited |
Constructor Detail |
---|
public OptDirectedEdge(OptDirectedNode in, OptDirectedNode out)
in
- Optimized in node.out
- Optimized out node.Method Detail |
---|
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 void reverse()
reverse
in interface Edge
UnsupportedOperationException
public int compareNodes(Edge other)
Edge
compareNodes
in interface Edge
Edge.compareNodes(Edge)
public Iterator getRelated()
Graphable
getRelated
in interface Graphable
Graphable.getRelated()
public Iterator getInRelated()
DirectedGraphable
getInRelated
in interface DirectedGraphable
DirectedGraphable.getInRelated()
public Iterator getOutRelated()
DirectedGraphable
getOutRelated
in interface DirectedGraphable
DirectedGraphable.getOutRelated()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |