Class TourLengthFilter
- java.lang.Object
-
- org.matsim.contribs.discrete_mode_choice.components.filters.TourLengthFilter
-
- All Implemented Interfaces:
TourFilter
public class TourLengthFilter extends Object implements TourFilter
-
-
Constructor Summary
Constructors Constructor Description TourLengthFilter(int maximumLength)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
filter(org.matsim.api.core.v01.population.Person person, List<DiscreteModeChoiceTrip> tour)
This function is called before any mode choice attempt for a certain tour is made.
-
-
-
Constructor Detail
-
TourLengthFilter
public TourLengthFilter(int maximumLength)
-
-
Method Detail
-
filter
public boolean filter(org.matsim.api.core.v01.population.Person person, List<DiscreteModeChoiceTrip> tour)
Description copied from interface:TourFilter
This function is called before any mode choice attempt for a certain tour is made. It should return whether the tour should be ignored for decision making.- Specified by:
filter
in interfaceTourFilter
-
-