|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Object
|
+--Opus5.AbstractObject
|
+--Opus5.AbstractGraph.GraphVertex
Represents a vertex in this graph.
Vertex| Field Summary | |
protected int |
number
The number of this vertex. |
protected java.lang.Object |
weight
The weight associated with this vertex. |
| Fields inherited from interface Opus5.Vertex |
copyright |
| Constructor Summary | |
AbstractGraph.GraphVertex(int number,
java.lang.Object weight)
Constructs a GraphVertex with
the specified number and weight. |
|
| Method Summary | |
protected int |
compareTo(Comparable object)
Compares this vertex with a specified comparable object. |
Enumeration |
getEmanatingEdges()
Returns an enumeration that enumerates the edges in this graph that emanate from this vertex. |
Enumeration |
getIncidentEdges()
Returns an enumeration that enumerates the edges in this graph that are incident upon this vertex. |
int |
getNumber()
Returns the number of this vertex. |
Enumeration |
getPredecessors()
Returns an enumeration that enumerates the vertices in this graph which are predecessors of this vertex. |
Enumeration |
getSuccessors()
Returns an enumeration that enumerates the vertices in this graph which are successors of this vertex. |
java.lang.Object |
getWeight()
Returns the weight associated with this vertex. |
int |
hashCode()
Returns a hashcode for this vertex. |
java.lang.String |
toString()
Returns a string representation of this vertex. |
| Methods inherited from class Opus5.AbstractObject |
compare, equals, isEQ, isGE, isGT, isLE, isLT, isNE |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface Opus5.Comparable |
compare, isEQ, isGE, isGT, isLE, isLT, isNE |
| Field Detail |
protected int number
protected java.lang.Object weight
| Constructor Detail |
public AbstractGraph.GraphVertex(int number,
java.lang.Object weight)
GraphVertex with
the specified number and weight.number - The specified number.weight - The specified weight.| Method Detail |
public int getNumber()
getNumber in interface Vertexpublic java.lang.Object getWeight()
getWeight in interface Vertexprotected int compareTo(Comparable object)
compareTo in class AbstractObjectMethodNotImplemented - Always.public int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Objectpublic Enumeration getIncidentEdges()
getIncidentEdges method as follows:
return AbstractGraph.this.getIncidentEdges (number);
getIncidentEdges in interface VertexOpus5.VertexEnumerationpublic Enumeration getEmanatingEdges()
getEmanatingEdges method as follows:
return AbstractGraph.this.getEmanatingEdges (number);
getEmanatingEdges in interface VertexOpus5.VertexEnumerationpublic Enumeration getPredecessors()
getIncidentEdges method.getPredecessors in interface Vertexpublic Enumeration getSuccessors()
getEmanatingEdges method.getSuccessors in interface Vertex
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||