|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsalvo.jesus.graph.EdgeImpl
salvo.jesus.graph.DirectedEdgeImpl
public class DirectedEdgeImpl
Represents a directed edge in a graph.
Field Summary | |
---|---|
(package private) DirectedEdgeWeakImpl |
directionOfEdge
The direction of the edge. |
Fields inherited from class salvo.jesus.graph.EdgeImpl |
---|
object, vertexA, vertexB |
Fields inherited from interface salvo.jesus.graph.DirectedEdge |
---|
DIRECTION_A_TO_B, DIRECTION_B_TO_A, NODIRECTION |
Constructor Summary | |
---|---|
DirectedEdgeImpl(Vertex sourceVertex,
Vertex sinkVertex)
Creates an DirectedEdgeImpl object whose origin and destination vertices are specified by the method parameters. |
Method Summary | |
---|---|
protected java.lang.Object |
clone()
Creates a clone of this Edge. |
int |
getDirection()
Returns the direction of the Edge |
Vertex |
getSink()
Returns the sink Vertex of the edge. |
Vertex |
getSource()
Returns the source Vertex of the edge. |
java.lang.String |
toString()
Returns a String representation of the Edge, using the the toString() methods of Vertex. |
Methods inherited from class salvo.jesus.graph.EdgeImpl |
---|
getObject, getOppositeVertex, getVertexA, getVertexB, setObject |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface salvo.jesus.graph.Edge |
---|
getObject, getOppositeVertex, getVertexA, getVertexB, setObject |
Field Detail |
---|
DirectedEdgeWeakImpl directionOfEdge
Constructor Detail |
---|
public DirectedEdgeImpl(Vertex sourceVertex, Vertex sinkVertex)
Vertex
Method Detail |
---|
public Vertex getSource()
getSource
in interface DirectedEdge
public Vertex getSink()
getSink
in interface DirectedEdge
public int getDirection()
getDirection
in interface DirectedEdge
public java.lang.String toString()
toString
in interface Edge
toString
in class EdgeImpl
Vertex
protected java.lang.Object clone()
clone
in class EdgeImpl
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |