|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsalvo.jesus.graph.DirectedEdgeWeakImpl
class DirectedEdgeWeakImpl
A weak implementation a directed edge in a graph. This is only used internally to implement the direction of an edge without having an actual edge.
Field Summary | |
---|---|
(package private) int |
direction
The direction of the edge. |
private Vertex |
sinkVertex
The sink Vertex of the Edge |
private Vertex |
sourceVertex
The source Vertex of the Edge |
Fields inherited from interface salvo.jesus.graph.DirectedEdge |
---|
DIRECTION_A_TO_B, DIRECTION_B_TO_A, NODIRECTION |
Constructor Summary | |
---|---|
DirectedEdgeWeakImpl(Vertex sourceVertex,
Vertex sinkVertex)
Creates an DirectedEdgeWeakImpl object whose origin and destination vertices are specified by the method parameters. |
Method Summary | |
---|---|
int |
getDirection()
Returns the direction of the Edge |
java.lang.Object |
getObject()
Empty method implemetation that returns null. |
Vertex |
getOppositeVertex(Vertex vertex)
Empty method implemetation that returns null. |
Vertex |
getSink()
Returns the sink Vertex of the edge. |
Vertex |
getSource()
Returns the source Vertex of the edge. |
Vertex |
getVertexA()
Empty method implemetation that returns null. |
Vertex |
getVertexB()
Empty method implemetation that returns null. |
void |
setObject(java.lang.Object obj)
Empty method implemetation does noething. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface salvo.jesus.graph.Edge |
---|
toString |
Field Detail |
---|
private Vertex sourceVertex
private Vertex sinkVertex
int direction
Constructor Detail |
---|
public DirectedEdgeWeakImpl(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 Vertex getVertexA()
getVertexA
in interface Edge
public Vertex getVertexB()
getVertexB
in interface Edge
public void setObject(java.lang.Object obj)
setObject
in interface Edge
public java.lang.Object getObject()
getObject
in interface Edge
public Vertex getOppositeVertex(Vertex vertex)
getOppositeVertex
in interface Edge
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |