Uses of Class
org.planit.time.TimePeriod
-
Packages that use TimePeriod Package Description org.planit.assignment Traffic assignment classesorg.planit.assignment.algorithmb org.planit.assignment.traditionalstatic org.planit.cost.physical.initial Initial Physical Cost objectsorg.planit.demands Classes which manage traveler demandsorg.planit.input Top-level input classes and interfacesorg.planit.io.demands Classes used to process the Java classes generated from XSD filesorg.planit.io.output.formatter PLANit IO output formatter packageorg.planit.output output writer related classesorg.planit.output.adapter Output Adapter and Output Type Adapter classes and interfacesorg.planit.output.formatter output formatter related classesorg.planit.output.property Output property objects which represent quantities which can be reported in the outputorg.planit.project PLANit project classesorg.planit.time Contains the definition of the TimePeriod objectorg.planit.tntp.output.formatter CSV output formatter used for TNTP results output -
-
Uses of TimePeriod in org.planit.assignment
Fields in org.planit.assignment with type parameters of type TimePeriod Modifier and Type Field Description protected Map<TimePeriod,InitialLinkSegmentCost>
TrafficAssignment. initialLinkSegmentCostByTimePeriod
Map storing InitialLinkSegmentCost objects for each time periodMethods in org.planit.assignment with parameters of type TimePeriod Modifier and Type Method Description protected void
StaticTrafficAssignment. executeTimePeriod(TimePeriod timePeriod)
Perform assignment for a given time periodprotected abstract void
StaticTrafficAssignment. executeTimePeriod(TimePeriod timePeriod, Set<Mode> modes)
Execute the time period for the registered modesvoid
TrafficAssignmentConfigurator. registerInitialLinkSegmentCost(TimePeriod timePeriod, InitialLinkSegmentCost initialLinkSegmentCost)
Register the initial link segment cost for a specified time periodvoid
TrafficAssignment. setInitialLinkSegmentCost(TimePeriod timePeriod, InitialLinkSegmentCost initialLinkSegmentCost)
Set the initial link segment cost for a specified time period, otherwise revert to the general initial link segment cost (if any) -
Uses of TimePeriod in org.planit.assignment.algorithmb
Methods in org.planit.assignment.algorithmb with parameters of type TimePeriod Modifier and Type Method Description protected void
AlgorithmB. executeTimePeriod(TimePeriod timePeriod, Set<Mode> modes)
Execute the time period for the registered modesvoid
AlgorithmBEquilibration. executeTimePeriod(TimePeriod timePeriod, Set<Mode> modes)
The method that performs the equilibration for a given time period using AlgorithmB -
Uses of TimePeriod in org.planit.assignment.traditionalstatic
Methods in org.planit.assignment.traditionalstatic with parameters of type TimePeriod Modifier and Type Method Description protected void
TraditionalStaticAssignment. executeTimePeriod(TimePeriod timePeriod, Set<Mode> modes)
Perform assignment for a given time period using Dijkstra's algorithm -
Uses of TimePeriod in org.planit.cost.physical.initial
Fields in org.planit.cost.physical.initial declared as TimePeriod Modifier and Type Field Description protected TimePeriod
InitialLinkSegmentCostPeriod. timePeriod
The time period which this initial cost object applies to.Methods in org.planit.cost.physical.initial that return TimePeriod Modifier and Type Method Description TimePeriod
InitialLinkSegmentCostPeriod. getTimePeriod()
Methods in org.planit.cost.physical.initial with parameters of type TimePeriod Modifier and Type Method Description void
InitialLinkSegmentCostPeriod. setTimePeriod(TimePeriod timePeriod)
-
Uses of TimePeriod in org.planit.demands
Methods in org.planit.demands that return TimePeriod Modifier and Type Method Description TimePeriod
Demands.TimePeriods. createAndRegisterNewTimePeriod(String description, long startTimeSeconds, long durationSeconds)
Factory method to create and register a new time period on the demandsTimePeriod
Demands.TimePeriods. getFirst()
Collect the first registered time period.TimePeriod
Demands.TimePeriods. getTimePeriodById(long id)
Retrieve a time period by its idTimePeriod
Demands.TimePeriods. getTimePeriodByXmlId(String xmlId)
Retrieve a TimePeriod by its xml Id This method is not efficient, since it loops through all the registered time periods in order to find the required time period.Methods in org.planit.demands that return types with arguments of type TimePeriod Modifier and Type Method Description SortedSet<TimePeriod>
Demands.TimePeriods. asSortedSetByStartTime()
Returns a set of all registered time periods sorted by the start time, i.e., the way th time period is comparableIterator<TimePeriod>
Demands.TimePeriods. iterator()
Iterator for time periods (non-sorted)Methods in org.planit.demands with parameters of type TimePeriod Modifier and Type Method Description ODDemandMatrix
Demands. get(Mode mode, TimePeriod timePeriod)
Get an ODDemand by mode and time periodSet<Mode>
Demands. getRegisteredModesForTimePeriod(TimePeriod timePeriod)
Get modes registered for the given time periodODDemandMatrix
Demands. registerODDemand(TimePeriod timePeriod, Mode mode, ODDemandMatrix odDemandMatrix)
Register provided odDemandprotected void
Demands.TimePeriods. registerTimePeriod(TimePeriod timePeriod)
Register a time period -
Uses of TimePeriod in org.planit.input
Fields in org.planit.input with type parameters of type TimePeriod Modifier and Type Field Description protected Map<String,TimePeriod>
InputBuilderListener. sourceIdTimePeriodMap
Map which stores time periods by xml IdMethods in org.planit.input that return TimePeriod Modifier and Type Method Description TimePeriod
InputBuilderListener. getTimePeriodBySourceId(String sourceId)
Return the time period for a specified sourceIdMethods in org.planit.input with parameters of type TimePeriod Modifier and Type Method Description protected boolean
InputBuilderListener. addTimePeriodToSourceIdMap(String sourceId, TimePeriod timePeriod)
Stores a time period by its sourceId -
Uses of TimePeriod in org.planit.io.demands
Fields in org.planit.io.demands with type parameters of type TimePeriod Modifier and Type Field Description protected Map<String,TimePeriod>
PlanitDemandsReaderSettings. xmlIdTimePeriodMap
Map which stores time periods by xml IdMethods in org.planit.io.demands that return types with arguments of type TimePeriod Modifier and Type Method Description protected Map<String,TimePeriod>
PlanitDemandsReaderSettings. getMapToIndexTimePeriodByXmlIds()
map to index time periods by xml id when parsingMethod parameters in org.planit.io.demands with type arguments of type TimePeriod Modifier and Type Method Description void
PlanitDemandsReaderSettings. setMapToIndexTimePeriodByXmlIds(Map<String,TimePeriod> xmlIdTimePeriodMap)
Use provided map to index time periods by xml id when parsing -
Uses of TimePeriod in org.planit.io.output.formatter
Methods in org.planit.io.output.formatter with parameters of type TimePeriod Modifier and Type Method Description protected void
PlanItOutputFormatter. writeGeneralResultsForCurrentTimePeriod(OutputConfiguration outputConfiguration, OutputTypeConfiguration outputTypeConfiguration, OutputTypeEnum currentOutputType, OutputAdapter outputAdapter, Set<Mode> modes, TimePeriod timePeriod, int iterationIndex)
Write General results for the current time period to the CSV fileprotected void
PlanItOutputFormatter. writeLinkResultsForCurrentTimePeriod(OutputConfiguration outputConfiguration, OutputTypeConfiguration outputTypeConfiguration, OutputTypeEnum currentOutputType, OutputAdapter outputAdapter, Set<Mode> modes, TimePeriod timePeriod, int iterationIndex)
Write link results for the current time period to the CSV fileprotected void
PlanItOutputFormatter. writeOdResultsForCurrentTimePeriod(OutputConfiguration outputConfiguration, OutputTypeConfiguration outputTypeConfiguration, OutputTypeEnum currentOutputType, OutputAdapter outputAdapter, Set<Mode> modes, TimePeriod timePeriod, int iterationIndex)
Write Origin-Destination results for the time period to the CSV fileprotected void
PlanItOutputFormatter. writePathResultsForCurrentTimePeriod(OutputConfiguration outputConfiguration, OutputTypeConfiguration outputTypeConfiguration, OutputTypeEnum currentOutputType, OutputAdapter outputAdapter, Set<Mode> modes, TimePeriod timePeriod, int iterationIndex)
Write Path results for the time period to the CSV fileprotected void
PlanItOutputFormatter. writeSimulationResultsForCurrentTimePeriod(OutputConfiguration outputConfiguration, OutputTypeConfiguration outputTypeConfiguration, OutputTypeEnum currentOutputType, OutputAdapter outputAdapter, Set<Mode> modes, TimePeriod timePeriod, int iterationIndex)
Write Simulation results for the current time period to the CSV file -
Uses of TimePeriod in org.planit.output
Methods in org.planit.output with parameters of type TimePeriod Modifier and Type Method Description void
OutputManager. persistOutputData(TimePeriod timePeriod, Set<Mode> modes, boolean converged)
Persist the output data for all registered output types -
Uses of TimePeriod in org.planit.output.adapter
Methods in org.planit.output.adapter with parameters of type TimePeriod Modifier and Type Method Description Object
LinkOutputTypeAdapter. getLinkOutputPropertyValue(OutputProperty outputProperty, LinkSegment linkSegment, Mode mode, TimePeriod timePeriod, double timeUnitMultiplier)
Return the value of a specified output property of a link segmentObject
LinkOutputTypeAdapterImpl. getLinkOutputPropertyValue(OutputProperty outputProperty, LinkSegment linkSegment, Mode mode, TimePeriod timePeriod, double timeUnitMultiplier)
Return the value of a specified output property of a link segment The DENSITY case should never be called for TraditionalStaticAssignment.Object
TraditionalStaticAssignmentLinkOutputTypeAdapter. getLinkOutputPropertyValue(OutputProperty outputProperty, LinkSegment linkSegment, Mode mode, TimePeriod timePeriod, double timeUnitMultiplier)
Return the value of a specified output property of a link segmentObject
ODOutputTypeAdapter. getODOutputPropertyValue(OutputProperty outputProperty, ODMatrixIterator odMatrixIterator, Mode mode, TimePeriod timePeriod, double timeUnitMultiplier)
Returns the specified output property values for the current cell in the OD Matrix IteratorObject
ODOutputTypeAdapterImpl. getODOutputPropertyValue(OutputProperty outputProperty, ODMatrixIterator odMatrixIterator, Mode mode, TimePeriod timePeriod, double timeUnitMultiplier)
Returns the specified output property values for the current cell in the OD Matrix Iteratorprotected Object
OutputTypeAdapterImpl. getOutputTypeIndependentPropertyValue(OutputProperty outputProperty, Mode mode, TimePeriod timePeriod)
Returns the value of properties which are common to all output type adaptersObject
PathOutputTypeAdapter. getPathOutputPropertyValue(OutputProperty outputProperty, ODPathIterator odPathIterator, Mode mode, TimePeriod timePeriod, PathOutputIdentificationType pathOutputType)
Returns the specified output property values for the current cell in the ODPathIteratorObject
PathOutputTypeAdapterImpl. getPathOutputPropertyValue(OutputProperty outputProperty, ODPathIterator odPathIterator, Mode mode, TimePeriod timePeriod, PathOutputIdentificationType pathOutputType)
Returns the specified output property values for the current cell in the ODPathIterator -
Uses of TimePeriod in org.planit.output.formatter
Methods in org.planit.output.formatter with parameters of type TimePeriod Modifier and Type Method Description protected String
FileOutputFormatter. generateOutputFileName(String outputDirectory, String nameRoot, String nameExtension, TimePeriod timePeriod, OutputType outputType, long runId)
Generates the name of an output file.protected String
FileOutputFormatter. generateOutputFileName(String outputDirectory, String nameRoot, String nameExtension, TimePeriod timePeriod, OutputType outputType, long runId, int iteration)
Generates the name of an output file.MemoryOutputIterator
MemoryOutputFormatter. getIterator(Mode mode, TimePeriod timePeriod, Integer iterationIndex, OutputType outputType)
Returns a MemoryOutputIterator for the contents of the specified MultiKeyPlanItData mapObject
MemoryOutputFormatter. getOutputDataValue(Mode mode, TimePeriod timePeriod, Integer iterationIndex, OutputType outputType, OutputProperty outputProperty, Object[] keyValues)
Get a specified data valuevoid
BaseOutputFormatter. persist(TimePeriod timePeriod, Set<Mode> modes, OutputConfiguration outputConfiguration, OutputTypeConfiguration outputTypeConfiguration, OutputAdapter outputAdapter)
Write data to output filevoid
OutputFormatter. persist(TimePeriod timePeriod, Set<Mode> modes, OutputConfiguration outputConfiguration, OutputTypeConfiguration outputTypeConfiguration, OutputAdapter outputAdapter)
Persist the output data based on the passed in configuration and adapter (contained in the configuration)protected abstract void
BaseOutputFormatter. writeGeneralResultsForCurrentTimePeriod(OutputConfiguration outputConfiguration, OutputTypeConfiguration outputTypeConfiguration, OutputTypeEnum currentOutputType, OutputAdapter outputAdapter, Set<Mode> modes, TimePeriod timePeriod, int iterationIndex)
Write General results for the current time period to the CSV fileprotected void
MemoryOutputFormatter. writeGeneralResultsForCurrentTimePeriod(OutputConfiguration outputConfiguration, OutputTypeConfiguration outputTypeConfiguration, OutputTypeEnum currentOutputType, OutputAdapter outputAdapter, Set<Mode> modes, TimePeriod timePeriod, int iterationIndex)
Write General results for the current time period to the CSV fileprotected abstract void
BaseOutputFormatter. writeLinkResultsForCurrentTimePeriod(OutputConfiguration outputConfiguration, OutputTypeConfiguration outputTypeConfiguration, OutputTypeEnum currentOutputType, OutputAdapter outputAdapter, Set<Mode> modes, TimePeriod timePeriod, int iterationIndex)
Write link results for the current time period to the CSV fileprotected void
MemoryOutputFormatter. writeLinkResultsForCurrentTimePeriod(OutputConfiguration outputConfiguration, OutputTypeConfiguration outputTypeConfiguration, OutputTypeEnum currentOutputType, OutputAdapter outputAdapter, Set<Mode> modes, TimePeriod timePeriod, int iterationIndex)
Write link results for the current time period to Map in memoryprotected PlanItException
CsvFileOutputFormatter. writeLinkResultsForCurrentTimePeriodToCsvPrinter(OutputConfiguration outputConfiguration, OutputTypeConfiguration outputTypeConfiguration, OutputTypeEnum currentOutputType, OutputAdapter outputAdapter, Set<Mode> modes, TimePeriod timePeriod, org.apache.commons.csv.CSVPrinter csvPrinter)
Write output values to the Link CSV file for the current iterationprotected abstract void
BaseOutputFormatter. writeOdResultsForCurrentTimePeriod(OutputConfiguration outputConfiguration, OutputTypeConfiguration outputTypeConfiguration, OutputTypeEnum currentOutputType, OutputAdapter outputAdapter, Set<Mode> modes, TimePeriod timePeriod, int iterationIndex)
Write Origin-Destination results for the time period to the CSV fileprotected void
MemoryOutputFormatter. writeOdResultsForCurrentTimePeriod(OutputConfiguration outputConfiguration, OutputTypeConfiguration outputTypeConfiguration, OutputTypeEnum currentOutputType, OutputAdapter outputAdapter, Set<Mode> modes, TimePeriod timePeriod, int iterationIndex)
Write Origin-Destination results for the time period to the Map in memoryprotected PlanItException
CsvFileOutputFormatter. writeOdResultsForCurrentTimePeriodToCsvPrinter(OutputConfiguration outputConfiguration, OutputTypeConfiguration outputTypeConfiguration, OutputTypeEnum currentOutputType, OutputAdapter outputAdapter, Set<Mode> modes, TimePeriod timePeriod, org.apache.commons.csv.CSVPrinter csvPrinter)
Write output values to the OD CSV file for the current iterationprotected abstract void
BaseOutputFormatter. writePathResultsForCurrentTimePeriod(OutputConfiguration outputConfiguration, OutputTypeConfiguration outputTypeConfiguration, OutputTypeEnum currentOutputType, OutputAdapter outputAdapter, Set<Mode> modes, TimePeriod timePeriod, int iterationIndex)
Write OD Path results for the time period to the CSV fileprotected void
MemoryOutputFormatter. writePathResultsForCurrentTimePeriod(OutputConfiguration outputConfiguration, OutputTypeConfiguration outputTypeConfiguration, OutputTypeEnum currentOutputType, OutputAdapter outputAdapter, Set<Mode> modes, TimePeriod timePeriod, int iterationIndex)
Write Path results for the time period to the CSV fileprotected PlanItException
CsvFileOutputFormatter. writePathResultsForCurrentTimePeriodToCsvPrinter(OutputConfiguration outputConfiguration, OutputTypeConfiguration outputTypeConfiguration, OutputTypeEnum currentOutputType, OutputAdapter outputAdapter, Set<Mode> modes, TimePeriod timePeriod, org.apache.commons.csv.CSVPrinter csvPrinter)
Write output values to the Path CSV file for the current iterationprotected abstract void
BaseOutputFormatter. writeSimulationResultsForCurrentTimePeriod(OutputConfiguration outputConfiguration, OutputTypeConfiguration outputTypeConfiguration, OutputTypeEnum currentOutputType, OutputAdapter outputAdapter, Set<Mode> modes, TimePeriod timePeriod, int iterationIndex)
Write Simulation results for the current time period to the CSV fileprotected void
MemoryOutputFormatter. writeSimulationResultsForCurrentTimePeriod(OutputConfiguration outputConfiguration, OutputTypeConfiguration outputTypeConfiguration, OutputTypeEnum currentOutputType, OutputAdapter outputAdapter, Set<Mode> modes, TimePeriod timePeriod, int iterationIndex)
Write Simulation results for the current time period to the CSV file -
Uses of TimePeriod in org.planit.output.property
Methods in org.planit.output.property with parameters of type TimePeriod Modifier and Type Method Description static Object
TimePeriodExternalIdOutputProperty. getTimePeriodExternalId(TimePeriod timePeriod)
Returns the current time period external Idstatic long
TimePeriodIdOutputProperty. getTimePeriodId(TimePeriod timePeriod)
Returns the current time period Idstatic Object
TimePeriodXmlIdOutputProperty. getTimePeriodXmlId(TimePeriod timePeriod)
Returns the current time period xml Id -
Uses of TimePeriod in org.planit.project
Methods in org.planit.project with parameters of type TimePeriod Modifier and Type Method Description InitialLinkSegmentCostPeriod
CustomPlanItProject. createAndRegisterInitialLinkSegmentCost(InfrastructureNetwork network, String fileName, TimePeriod timePeriod)
Create and register initial link segment costs from a (single) file and register it to the provided time periodInitialLinkSegmentCostPeriod
PlanItProjectInput. createAndRegisterInitialLinkSegmentCost(InfrastructureNetwork network, String fileName, TimePeriod timePeriod)
Create and register initial link segment costs from a (single) file for each time period -
Uses of TimePeriod in org.planit.time
Methods in org.planit.time that return types with arguments of type TimePeriod Modifier and Type Method Description static Comparator<TimePeriod>
TimePeriod. comparatorByStartTime()
custom comparator not by id but based on the start time and when equal duration -
Uses of TimePeriod in org.planit.tntp.output.formatter
Methods in org.planit.tntp.output.formatter with parameters of type TimePeriod Modifier and Type Method Description protected void
CSVOutputFormatter. writeGeneralResultsForCurrentTimePeriod(OutputConfiguration outputConfiguration, OutputTypeConfiguration outputTypeConfiguration, OutputTypeEnum currentOutputType, OutputAdapter outputAdapter, Set<Mode> modes, TimePeriod timePeriod, int iterationIndex)
Write General results for the current time period to the CSV fileprotected void
CSVOutputFormatter. writeLinkResultsForCurrentTimePeriod(OutputConfiguration outputConfiguration, OutputTypeConfiguration outputTypeConfiguration, OutputTypeEnum currentOutputType, OutputAdapter outputAdapter, Set<Mode> modes, TimePeriod timePeriod, int iterationIndex)
Write link results for the current time period to the CSV fileprotected void
CSVOutputFormatter. writeOdResultsForCurrentTimePeriod(OutputConfiguration outputConfiguration, OutputTypeConfiguration outputTypeConfiguration, OutputTypeEnum currentOutputType, OutputAdapter outputAdapter, Set<Mode> modes, TimePeriod timePeriod, int iterationIndex)
Write Origin-Destination results for the time period to the CSV fileprotected void
CSVOutputFormatter. writePathResultsForCurrentTimePeriod(OutputConfiguration outputConfiguration, OutputTypeConfiguration outputTypeConfiguration, OutputTypeEnum currentOutputType, OutputAdapter outputAdapter, Set<Mode> modes, TimePeriod timePeriod, int iterationIndex)
Write Path results for the time period to the CSV fileprotected void
CSVOutputFormatter. writeSimulationResultsForCurrentTimePeriod(OutputConfiguration outputConfiguration, OutputTypeConfiguration outputTypeConfiguration, OutputTypeEnum currentOutputType, OutputAdapter outputAdapter, Set<Mode> modes, TimePeriod timePeriod, int iterationIndex)
Write Simulation results for the current time period to the CSV file
-