Package org.planit.cost
Interface Cost<T extends EdgeSegment>
-
- All Superinterfaces:
Serializable
- All Known Subinterfaces:
PhysicalCost,VirtualCost
- All Known Implementing Classes:
AbstractPhysicalCost,AbstractVirtualCost,BPRLinkTravelTimeCost,FixedConnectoidTravelTimeCost,InitialLinkSegmentCost,InitialLinkSegmentCostPeriod,InitialPhysicalCost,ManualInitialLinkSegmentCost,SpeedConnectoidTravelTimeCost
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 doublegetSegmentCost(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
-
-