Package org.planit.cost
Interface Cost<T extends EdgeSegment>
-
- All Superinterfaces:
Serializable
- All Known Subinterfaces:
AbstractPhysicalCost
- All Known Implementing Classes:
BPRLinkTravelTimeCost
,FixedConnectoidTravelTimeCost
,InitialLinkSegmentCost
,InitialLinkSegmentCostPeriod
,InitialPhysicalCost
,ManualInitialLinkSegmentCost
,PhysicalCost
,SpeedConnectoidTravelTimeCost
,VirtualCost
public interface Cost<T extends EdgeSegment> extends Serializable
Cost of an EdgeSegment- Author:
- markr
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description double
getSegmentCost(Mode mode, T edgeSegment)
Returns the cost of travel along an edge segment for a specified mode
-
-
-
Method Detail
-
getSegmentCost
double getSegmentCost(Mode mode, T edgeSegment) throws PlanItException
Returns the cost of travel along an edge segment for a specified mode- Parameters:
mode
- the specified mode of traveledgeSegment
- the specified edge segment (which can be physical or virtual)- Returns:
- the cost of travel along the specified segment
- Throws:
PlanItException
- the exception thrown when not available
-
-