Package org.planit.cost.physical.initial
Class InitialPhysicalCost
- java.lang.Object
-
- org.djutils.event.EventProducer
-
- org.planit.trafficassignment.TrafficAssignmentComponent<InitialPhysicalCost>
-
- org.planit.cost.physical.initial.InitialPhysicalCost
-
- All Implemented Interfaces:
Serializable
,org.djutils.event.EventProducerInterface
,Cost<LinkSegment>
,AbstractPhysicalCost
- Direct Known Subclasses:
InitialLinkSegmentCost
public abstract class InitialPhysicalCost extends TrafficAssignmentComponent<InitialPhysicalCost> implements AbstractPhysicalCost, Serializable
The initial physical costs for the network- Author:
- gman6028
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.planit.trafficassignment.TrafficAssignmentComponent
groupId, id, trafficComponentType
-
-
Constructor Summary
Constructors Constructor Description InitialPhysicalCost(IdGroupingToken groupId)
Constructor
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract void
setSegmentCost(Mode mode, LinkSegment linkSegment, double cost)
Set the initial cost for a specified mode and link segment-
Methods inherited from class org.planit.trafficassignment.TrafficAssignmentComponent
getId, getIdGroupingtoken, getSourceId, getTrafficComponentType
-
Methods inherited from class org.djutils.event.EventProducer
addListener, addListener, addListener, addListener, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireTimedEvent, fireTimedEvent, fireTimedEvent, fireTimedEvent, fireTimedEvent, fireTimedEvent, fireTimedEvent, getEventTypesWithListeners, hasListeners, numberOfListeners, removeAllListeners, removeAllListeners, removeListener
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.planit.cost.Cost
getSegmentCost
-
-
-
-
Constructor Detail
-
InitialPhysicalCost
public InitialPhysicalCost(IdGroupingToken groupId)
Constructor- Parameters:
groupId
- , contiguous id generation within this group for instances of this class
-
-
Method Detail
-
setSegmentCost
public abstract void setSegmentCost(Mode mode, LinkSegment linkSegment, double cost)
Set the initial cost for a specified mode and link segment- Parameters:
mode
- the current modelinkSegment
- the current link segmentcost
- the initial cost for this mode and link segment
-
-