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, count
AgentSelection<T> filter(SerializablePredicate<T> predicate)
VertexSelection
SerializablePredicate
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 AgentStatistics<T> stats()
AgentStatistics
instance using the current selection.