Package org.goplanit.assignment.ltm.sltm
Class StaticLtmSimulationData
- java.lang.Object
-
- org.goplanit.assignment.SimulationData
-
- org.goplanit.assignment.ltm.sltm.StaticLtmSimulationData
-
public class StaticLtmSimulationData extends SimulationData
Class to hold variables specific to running an sLTM assignment- Author:
- markr
-
-
Constructor Summary
Constructors Constructor Description StaticLtmSimulationData(StaticLtmSimulationData simulationData)
Copy ConstructorStaticLtmSimulationData(TimePeriod timePeriod, Collection<Mode> supportedModes, long numberOfTotalLinkSegments)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double[]
getLinkSegmentTravelTimePcuH(Mode theMode)
Collect the travel time costs for a given mode supported by the loading of this dataTimePeriod
getTimePeriod()
Active time periodvoid
reset()
Reset the datavoid
setLinkSegmentTravelTimePcuH(Mode theMode, double[] travelTimeCostHour)
Set the costs(travel time in hours per link segment) for a given mode supported by the loading of this datavoid
setTimePeriod(TimePeriod timePeriod)
Active time periodStaticLtmSimulationData
shallowClone()
-
Methods inherited from class org.goplanit.assignment.SimulationData
getIterationIndex, incrementIterationIndex, setIterationIndex
-
-
-
-
Constructor Detail
-
StaticLtmSimulationData
public StaticLtmSimulationData(TimePeriod timePeriod, Collection<Mode> supportedModes, long numberOfTotalLinkSegments)
Constructor- Parameters:
timePeriod
- currently in actionsupportedModes
- used by the simulationnumberOfTotalLinkSegments
- used to correctly initialise the size of the internal data arrays for link segment data
-
StaticLtmSimulationData
public StaticLtmSimulationData(StaticLtmSimulationData simulationData)
Copy Constructor- Parameters:
simulationData
- to copy
-
-
Method Detail
-
setLinkSegmentTravelTimePcuH
public void setLinkSegmentTravelTimePcuH(Mode theMode, double[] travelTimeCostHour)
Set the costs(travel time in hours per link segment) for a given mode supported by the loading of this data- Parameters:
theMode
- to set it fortravelTimeCostHour
- travel time cost in hours per link segment by link segment id
-
getLinkSegmentTravelTimePcuH
public double[] getLinkSegmentTravelTimePcuH(Mode theMode)
Collect the travel time costs for a given mode supported by the loading of this data- Parameters:
theMode
- to set it for- Returns:
- travelTimeCostHour travel time cost in hours per link segment by link segment id
-
getTimePeriod
public TimePeriod getTimePeriod()
Active time period- Returns:
- active time period
-
setTimePeriod
public void setTimePeriod(TimePeriod timePeriod)
Active time period- Parameters:
timePeriod
- to use
-
shallowClone
public StaticLtmSimulationData shallowClone()
- Overrides:
shallowClone
in classSimulationData
-
reset
public void reset()
Reset the data- Overrides:
reset
in classSimulationData
-
-