Interface TimeInterpreter
-
- All Known Implementing Classes:
AbstractTimeInterpreter
,EndTimeOnlyInterpreter
,EndTimeThenDurationInterpreter
,MinimumEndTimeAndDurationInterpreter
public interface TimeInterpreter
This interfaces defines a utility that allows to track the time of day while looping through plan elements. MATSim uses different implementations of this process to make sense of activity end times and maximum activity durations.- Author:
- sebhoerl
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
TimeInterpreter.Factory
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addActivity(org.matsim.api.core.v01.population.Activity activity)
void
addLeg(org.matsim.api.core.v01.population.Leg leg)
void
addPlanElement(org.matsim.api.core.v01.population.PlanElement element)
void
addPlanElements(List<? extends org.matsim.api.core.v01.population.PlanElement> elements)
void
addTime(double duration)
TimeInterpreter
fork()
double
getCurrentTime()
double
getPreviousTime()
void
setTime(double time)
-
-
-
Method Detail
-
getCurrentTime
double getCurrentTime()
-
getPreviousTime
double getPreviousTime()
-
addLeg
void addLeg(org.matsim.api.core.v01.population.Leg leg)
-
addActivity
void addActivity(org.matsim.api.core.v01.population.Activity activity)
-
addPlanElement
void addPlanElement(org.matsim.api.core.v01.population.PlanElement element)
-
addPlanElements
void addPlanElements(List<? extends org.matsim.api.core.v01.population.PlanElement> elements)
-
setTime
void setTime(double time)
-
addTime
void addTime(double duration)
-
fork
TimeInterpreter fork()
-
-