|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--drasys.or.graph.VertexBase
A common base for vertices containing common attributes.
Method Summary | |
double |
getCost()
If the value object is a 'VertexValueI' the return value is 'value.getCost()'. |
double[] |
getDemand()
If the value object is a 'VertexValueI' the return value is 'value.getDemand()'. |
int |
getInDegree()
Get the number of edges that are connected to this vertex on the 'to' end. |
int |
getIndex()
The index of the vertex in the graph. |
java.lang.Object |
getKey()
Returns the vertex key. |
int |
getOutDegree()
Get the number of edges that are connected to this vertex on the 'from' end. |
double |
getTime()
If the value object is a 'VertexValueI' the return value is 'value.getCost()'. |
java.lang.Object |
getValue()
Returns the vertex value. |
boolean |
isEdge()
Returns true if the graph element is an edge. |
boolean |
isVertex()
Returns true if the graph element is a vertex. |
void |
setIndex(int index)
|
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Method Detail |
public int getIndex()
public int getInDegree()
public int getOutDegree()
public java.lang.Object getKey()
public java.lang.Object getValue()
public boolean isEdge()
public boolean isVertex()
public void setIndex(int index)
public double[] getDemand()
public double getCost()
public double getTime()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |