Class ActivityStartingFilter
- java.lang.Object
-
- org.matsim.withinday.replanning.identifiers.filter.ActivityStartingFilter
-
- All Implemented Interfaces:
AgentFilter
public class ActivityStartingFilter extends Object implements AgentFilter
Remove all agents from the set that are going to start an activity on their current link.- Author:
- cdobler
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
applyAgentFilter(Set<Id<Person>> set, double time)
Agents that do not match the filter criteria are removed from the set.boolean
applyAgentFilter(Id<Person> id, double time)
Returns true if the agent matches the filter criteria, otherwise returns false.
-
-
-
Method Detail
-
applyAgentFilter
public void applyAgentFilter(Set<Id<Person>> set, double time)
Description copied from interface:AgentFilter
Agents that do not match the filter criteria are removed from the set.- Specified by:
applyAgentFilter
in interfaceAgentFilter
-
applyAgentFilter
public boolean applyAgentFilter(Id<Person> id, double time)
Description copied from interface:AgentFilter
Returns true if the agent matches the filter criteria, otherwise returns false.- Specified by:
applyAgentFilter
in interfaceAgentFilter
-
-