Class StaticLtmSimulationData


  • public class StaticLtmSimulationData
    extends SimulationData
    Class to hold variables specific to running an sLTM assignment
    Author:
    markr
    • Constructor Detail

      • StaticLtmSimulationData

        public StaticLtmSimulationData​(TimePeriod timePeriod,
                                       Collection<Mode> supportedModes,
                                       long numberOfTotalLinkSegments)
        Constructor
        Parameters:
        timePeriod - currently in action
        supportedModes - used by the simulation
        numberOfTotalLinkSegments - 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 for
        travelTimeCostHour - 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