Class 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 Detail

      • nextAlgorithm

        protected org.matsim.core.population.algorithms.PlanAlgorithm nextAlgorithm
    • 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 interface PlanFilter
        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 interface org.matsim.core.population.algorithms.PlanAlgorithm
        Specified by:
        run in interface PlanFilter
      • count

        public void count()
        Specified by:
        count in interface org.matsim.facilities.filters.Filter
      • getCount

        public int getCount()
        Specified by:
        getCount in interface org.matsim.facilities.filters.Filter