drasys.or.graph
Interface EdgePropertiesI

All Known Subinterfaces:
PropertiesI, TimeWindowPropertiesI

public interface EdgePropertiesI

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

isSymmetric

public boolean isSymmetric()
Returns false if the edge properties cause the graph be asymmetric.

isEdgeRestricted

public boolean isEdgeRestricted(EdgeI edge,
                                boolean reverse)
Returns true to prevent an algorithm from crossing the edge in the indicated direction.
Parameters:
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.

getEdgeCost

public double getEdgeCost(EdgeI edge,
                          boolean reverse)
Returns the cost of crossing 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.

getEdgeTime

public double getEdgeTime(EdgeI edge,
                          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.

getEdgeDistance

public double getEdgeDistance(EdgeI edge,
                              boolean reverse)
Returns the distance 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.


Copyright(C)1997-2000 by DRA Systems all rights reserved. OpsResearch.com