T - Agent Typepublic interface AgentSelection<T extends Agent<? extends GlobalState>> extends VertexSelection<T>
AgentSystem for the purposes
of aggregation.| Modifier and Type | Method and Description |
|---|---|
AgentSelection<T> |
filter(SerializablePredicate<T> predicate)
Applies a filter to this selection.
|
AgentStatistics<T> |
stats()
Return an
AgentStatistics instance using the current selection. |
aggregate, countAgentSelection<T> filter(SerializablePredicate<T> predicate)
VertexSelectionSerializablePredicate predicate will
be run on each agent, and its return value will determine if the agent remains in the selection
or not.filter in interface VertexSelection<T extends Agent<? extends GlobalState>>predicate - Predicate on agents of type TAgentStatistics<T> stats()
AgentStatistics instance using the current selection.