Class AbstractPlanFilter
- java.lang.Object
-
- org.matsim.contrib.analysis.filters.population.AbstractPlanFilter
-
- All Implemented Interfaces:
PlanFilter
,org.matsim.core.population.algorithms.PlanAlgorithm
,org.matsim.facilities.filters.Filter
- Direct Known Subclasses:
RouteLinkFilter
public abstract class AbstractPlanFilter extends Object implements PlanFilter, org.matsim.core.population.algorithms.PlanAlgorithm
-
-
Field Summary
Fields Modifier and Type Field Description protected org.matsim.core.population.algorithms.PlanAlgorithm
nextAlgorithm
-
Constructor Summary
Constructors Constructor Description AbstractPlanFilter()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
count()
int
getCount()
abstract boolean
judge(org.matsim.api.core.v01.population.Plan plan)
Judges whether the plan will be selected or not.void
run(org.matsim.api.core.v01.population.Plan plan)
Sends the person to the next algorithm
-
-
-
Field Detail
-
nextAlgorithm
protected org.matsim.core.population.algorithms.PlanAlgorithm nextAlgorithm
-
-
Constructor Detail
-
AbstractPlanFilter
public AbstractPlanFilter()
-
-
Method Detail
-
judge
public abstract boolean judge(org.matsim.api.core.v01.population.Plan plan)
Description copied from interface:PlanFilter
Judges whether the plan will be selected or not.- Specified by:
judge
in interfacePlanFilter
- Returns:
- true if the plan meets the criterion of the filter.
-
run
public void run(org.matsim.api.core.v01.population.Plan plan)
Description copied from interface:PlanFilter
Sends the person to the next algorithm- Specified by:
run
in interfaceorg.matsim.core.population.algorithms.PlanAlgorithm
- Specified by:
run
in interfacePlanFilter
-
count
public void count()
- Specified by:
count
in interfaceorg.matsim.facilities.filters.Filter
-
getCount
public int getCount()
- Specified by:
getCount
in interfaceorg.matsim.facilities.filters.Filter
-
-