Class ManualInitialLinkSegmentCost
- java.lang.Object
-
- org.goplanit.component.PlanitComponent<InitialPhysicalCost>
-
- org.goplanit.cost.physical.initial.InitialPhysicalCost
-
- org.goplanit.cost.physical.initial.InitialLinkSegmentCost
-
- org.goplanit.cost.physical.initial.ManualInitialLinkSegmentCost
-
- All Implemented Interfaces:
Serializable,Cloneable,Comparable<IdAble>,EventListener,PlanitComponentListener,Cost<MacroscopicLinkSegment>,PhysicalCost,EventListener,ExternalIdAble,IdAble
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.goplanit.cost.physical.initial.InitialLinkSegmentCost
timePeriodAgnosticCosts, timePeriodCosts
-
Fields inherited from interface org.goplanit.cost.physical.PhysicalCost
BPR, FREEFLOW, STEADY_STATE
-
-
Constructor Summary
Constructors Constructor Description ManualInitialLinkSegmentCost(ManualInitialLinkSegmentCost other)Copy constructorManualInitialLinkSegmentCost(IdGroupingToken groupId)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ManualInitialLinkSegmentCostclone()Create a shallow copy of this entityvoidreset()All components should be able to reset going back to some representative initial statevoidsetAllSegmentCosts(Mode mode, double cost, int noLinkSegments)Sets a given cost for all link segments for a given mode-
Methods inherited from class org.goplanit.cost.physical.initial.InitialLinkSegmentCost
getDTravelTimeDFlow, getGeneralisedCost, getSegmentCost, getSegmentCost, getTimePeriodAgnosticCosts, getTimePeriodCosts, getTimePeriods, getTravelTimeCost, isSegmentCostsSetForMode, isSegmentCostsSetForMode, isSegmentCostsSetForTimePeriod, setSegmentCost, setSegmentCost, setSegmentCost
-
Methods inherited from class org.goplanit.component.PlanitComponent
equals, getComponentType, getExternalId, getId, getIdGroupingToken, getKnownSupportedEventTypes, getXmlId, hashCode, onPlanitComponentEvent, setExternalId, setXmlId
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.goplanit.utils.event.EventListener
hasKnownSupportedEventTypes
-
Methods inherited from interface org.goplanit.utils.id.ExternalIdAble
hasExternalId, hasXmlId
-
Methods inherited from interface org.goplanit.utils.id.IdAble
compareTo, idEquals, idHashCode
-
-
-
-
Constructor Detail
-
ManualInitialLinkSegmentCost
public ManualInitialLinkSegmentCost(IdGroupingToken groupId)
Constructor- Parameters:
groupId- contiguous id generation within this group for instances of this class
-
ManualInitialLinkSegmentCost
public ManualInitialLinkSegmentCost(ManualInitialLinkSegmentCost other)
Copy constructor- Parameters:
other- to copy
-
-
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
-
clone
public ManualInitialLinkSegmentCost clone()
Create a shallow copy of this entity- Specified by:
clonein interfaceIdAble- Overrides:
clonein classInitialLinkSegmentCost- Returns:
- shallow copy of entity
-
reset
public void reset()
All components should be able to reset going back to some representative initial state- Overrides:
resetin classInitialLinkSegmentCost
-
-