Package org.planit.cost.physical.initial
Class ManualInitialLinkSegmentCost
- java.lang.Object
-
- org.djutils.event.EventProducer
-
- org.planit.trafficassignment.TrafficAssignmentComponent<InitialPhysicalCost>
-
- org.planit.cost.physical.initial.InitialPhysicalCost
-
- org.planit.cost.physical.initial.InitialLinkSegmentCost
-
- org.planit.cost.physical.initial.ManualInitialLinkSegmentCost
-
- All Implemented Interfaces:
Serializable
,org.djutils.event.EventProducerInterface
,Cost<LinkSegment>
,AbstractPhysicalCost
public class ManualInitialLinkSegmentCost extends InitialLinkSegmentCost
Initial Link Segment Cost for which all the link segments have the same cost value for a specified mode- Author:
- gman6028
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.planit.cost.physical.initial.InitialLinkSegmentCost
costPerModeAndLinkSegment
-
Fields inherited from class org.planit.trafficassignment.TrafficAssignmentComponent
groupId, id, trafficComponentType
-
-
Constructor Summary
Constructors Constructor Description ManualInitialLinkSegmentCost(IdGroupingToken groupId)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
setAllSegmentCosts(Mode mode, double cost, int noLinkSegments)
Sets a given cost for all link segments for a given mode-
Methods inherited from class org.planit.cost.physical.initial.InitialLinkSegmentCost
getId, getSegmentCost, isSegmentCostsSetForMode, setSegmentCost, setSegmentCost
-
Methods inherited from class org.planit.trafficassignment.TrafficAssignmentComponent
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
-
-
-
-
Constructor Detail
-
ManualInitialLinkSegmentCost
public ManualInitialLinkSegmentCost(IdGroupingToken groupId)
Constructor- Parameters:
groupId
- , contiguous id generation within this group for instances of this class
-
-
Method Detail
-
setAllSegmentCosts
public void setAllSegmentCosts(Mode mode, double cost, int noLinkSegments)
Sets a given cost for all link segments for a given mode- Parameters:
mode
- the specified modecost
- the cost of travel to be usednoLinkSegments
- the number of link segments
-
-