|
Java 2 Platform v1.3 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--edu.umich.visualsoar.graph.Edge
This class represents an edge in a graph it is based on Object-Oriented Design patterns in C++, later converted to Java
Field Summary | |
protected edu.umich.visualsoar.graph.Vertex |
v0
v0 is the starting edge v1 is the ending edge |
protected edu.umich.visualsoar.graph.Vertex |
v1
|
Constructor Summary | |
private |
Edge()
|
|
Edge(edu.umich.visualsoar.graph.Vertex _v0,
edu.umich.visualsoar.graph.Vertex _v1)
constructs and edge between the first vertex and the second one |
Method Summary | |
edu.umich.visualsoar.graph.Vertex |
mate(edu.umich.visualsoar.graph.Vertex v)
if v equals the starting edge then return the ending edge if v equal the ending edge then return the starting edge else throw and exception |
java.lang.String |
toString()
Produces string representation of the edge |
edu.umich.visualsoar.graph.Vertex |
V0()
|
edu.umich.visualsoar.graph.Vertex |
V1()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected edu.umich.visualsoar.graph.Vertex v0
protected edu.umich.visualsoar.graph.Vertex v1
Constructor Detail |
private Edge()
public Edge(edu.umich.visualsoar.graph.Vertex _v0, edu.umich.visualsoar.graph.Vertex _v1)
Method Detail |
public edu.umich.visualsoar.graph.Vertex V0()
public edu.umich.visualsoar.graph.Vertex V1()
public edu.umich.visualsoar.graph.Vertex mate(edu.umich.visualsoar.graph.Vertex v)
java.lang.IllegalArgumentException
public java.lang.String toString()
toString
in class java.lang.Object
|
Java 2 Platform v1.3 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |