Class ScheduleWaitingTimeEstimator
- java.lang.Object
-
- org.matsim.contribs.discrete_mode_choice.components.utils.ScheduleWaitingTimeEstimator
-
- All Implemented Interfaces:
PTWaitingTimeEstimator
public class ScheduleWaitingTimeEstimator extends Object implements PTWaitingTimeEstimator
Utility to estimate waiting times in public transport. By default, the ExperimentalTransitRoute given by the MATSim PT router does not give information how long an agent will wait for the next public transit vehicle. However, this is scored in MATSim so it would be good if one can estimate this waiting time in the utility calculation for the discrete mode choice. This class performs such an estimation although it is some computational overhead. Ideally, this information would be included in the route of the agents.- Author:
- sebhoerl
-
-
Constructor Summary
Constructors Constructor Description ScheduleWaitingTimeEstimator(org.matsim.pt.transitSchedule.api.TransitSchedule transitSchedule)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double
estimateWaitingTime(double agentDepartureTime, org.matsim.pt.routes.TransitPassengerRoute route)
double
estimateWaitingTime(List<? extends org.matsim.api.core.v01.population.PlanElement> elements)
-
-
-
Constructor Detail
-
ScheduleWaitingTimeEstimator
public ScheduleWaitingTimeEstimator(org.matsim.pt.transitSchedule.api.TransitSchedule transitSchedule)
-
-
Method Detail
-
estimateWaitingTime
public double estimateWaitingTime(List<? extends org.matsim.api.core.v01.population.PlanElement> elements)
-
estimateWaitingTime
public double estimateWaitingTime(double agentDepartureTime, org.matsim.pt.routes.TransitPassengerRoute route)
- Specified by:
estimateWaitingTime
in interfacePTWaitingTimeEstimator
-
-