|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--drasys.or.graph.EdgeBase
A common base for edges containing common attributes.
Method Summary | |
double |
getCost(boolean isReverse)
If the value object is a 'EdgeValueI' the return value is 'value.getCost(isReverse)'. |
double |
getDistance(boolean isReverse)
If the value object is an 'EdgeValueI' the return value is 'value.getDistance(isReverse)'. |
int |
getIndex()
The index of the edge in the graph. |
java.lang.Object |
getKey()
Returns the edge key. |
GraphI |
getSubgraph()
Always returns null. |
double |
getTime(boolean isReverse)
If the value object is an 'EdgeValueI' the return value is 'value.getTime(isReverse)'. |
java.lang.Object |
getValue()
Returns the edge value. |
boolean |
isDirected()
Returns true if the edge is directed. |
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 java.lang.Object getKey()
public java.lang.Object getValue()
public boolean isEdge()
public boolean isVertex()
public void setIndex(int index)
public boolean isDirected()
public double getCost(boolean isReverse)
reverse
- is set to true if the traversal starts at the 'to' end of the edge and stops at the 'from' end, this can only happen if the edge is undirected.public double getTime(boolean isReverse)
reverse
- is set to true if the traversal starts at the 'to' end of the edge and stops at the 'from' end, this can only happen if the edge is undirected.public double getDistance(boolean isReverse)
reverse
- is set to true if the traversal starts at the 'to' end of the edge and stops at the 'from' end, this can only happen if the edge is undirected.public GraphI getSubgraph()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |