|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The interface used to obtain edge properties.
Method Summary | |
double |
getEdgeCost(EdgeI edge,
boolean reverse)
Returns the cost of crossing the edge in the indicated direction. |
double |
getEdgeDistance(EdgeI edge,
boolean reverse)
Returns the distance to cross the edge in the indicated direction. |
double |
getEdgeTime(EdgeI edge,
boolean reverse)
Returns the time required to cross the edge in the indicated direction. |
boolean |
isEdgeRestricted(EdgeI edge,
boolean reverse)
Returns true to prevent an algorithm from crossing the edge in the indicated direction. |
boolean |
isSymmetric()
Returns false if the edge properties cause the graph be asymmetric. |
Method Detail |
public boolean isSymmetric()
public boolean isEdgeRestricted(EdgeI edge, boolean reverse)
reverse
- 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 getEdgeCost(EdgeI edge, boolean reverse)
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 getEdgeTime(EdgeI edge, boolean reverse)
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 getEdgeDistance(EdgeI edge, boolean reverse)
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.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |