drasys.or.graph
Interface EdgeValueI
- All Known Subinterfaces:
- EdgeI
- All Known Implementing Classes:
- EdgeValue
- public interface EdgeValueI
The interface used by all algorithms to access edge features.
Method Summary |
double |
getCost(boolean reverse)
Returns the cost of crossong the edge in the indicated direction. |
double |
getDistance(boolean reverse)
Returns the distance across the edge in the indicated direction. |
double |
getTime(boolean reverse)
Returns the time required to cross the edge in the indicated direction. |
getCost
public double getCost(boolean reverse)
- Returns the cost of crossong the edge in the indicated direction.
- Parameters:
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.
getTime
public double getTime(boolean reverse)
- Returns the time required to cross the edge in the indicated direction.
- Parameters:
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.
getDistance
public double getDistance(boolean reverse)
- Returns the distance across the edge in the indicated direction.
- Parameters:
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.
Copyright(C)1997-2000 by DRA Systems all rights reserved. OpsResearch.com