|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsalvo.jesus.graph.EdgeImpl
public class EdgeImpl
Represents an undirected edge in a graph.
Field Summary | |
---|---|
protected java.lang.Object |
object
The Object encapsulated by the Edge |
protected Vertex |
vertexA
The A vertex of the edge. |
protected Vertex |
vertexB
The B vertex of the edge. |
Constructor Summary | |
---|---|
EdgeImpl(Vertex a,
Vertex b)
Creates an UndirectedEdge object. |
Method Summary | |
---|---|
protected java.lang.Object |
clone()
Creates a clone of this Edge. |
java.lang.Object |
getObject()
Returns the object encapsulated by the Edge |
Vertex |
getOppositeVertex(Vertex v)
Returns the Vertex opposite to the specified Vertex in the edge. |
Vertex |
getVertexA()
Returns the endpoint A of the edge. |
Vertex |
getVertexB()
Returns the endpoint B of the edge. |
void |
setObject(java.lang.Object obj)
Sets an Object that is encapsulated by the Edge |
java.lang.String |
toString()
Returns a String representation of the Edge, using the the toString() methods of Vertex. |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected Vertex vertexA
protected Vertex vertexB
protected java.lang.Object object
Constructor Detail |
---|
public EdgeImpl(Vertex a, Vertex b)
Vertex
Method Detail |
---|
public Vertex getVertexA()
getVertexA
in interface Edge
public Vertex getVertexB()
getVertexB
in interface Edge
public Vertex getOppositeVertex(Vertex v)
getOppositeVertex
in interface Edge
public void setObject(java.lang.Object obj)
setObject
in interface Edge
public java.lang.Object getObject()
getObject
in interface Edge
public java.lang.String toString()
toString
in interface Edge
toString
in class java.lang.Object
Vertex
protected java.lang.Object clone()
clone
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |