Uses of Class
modelarium.entities.agentsets.ReadOnlyAgentSet
Packages that use ReadOnlyAgentSet
Package
Description
Provides mutable and read-only collections of agents.
Defines the simulation views supplied to attribute behaviour.
-
Uses of ReadOnlyAgentSet in modelarium.entities.agentsets
Methods in modelarium.entities.agentsets that return ReadOnlyAgentSetModifier and TypeMethodDescriptionAgentSet.getAsImmutable()Returns a read-only view of this agent set.ReadOnlyAgentSet.getFilteredAgents(Predicate<ReadOnlyAgent> agentFilter) Returns a living-only filtered view of the agent set.ReadOnlyAgentSet.getFilteredAgents(Predicate<ReadOnlyAgent> agentFilter, boolean includeDeadAgents) Returns a filtered view of the agent set. -
Uses of ReadOnlyAgentSet in modelarium.entities.contexts
Methods in modelarium.entities.contexts that return ReadOnlyAgentSetModifier and TypeMethodDescriptionContext.getFilteredAgents(Predicate<ReadOnlyAgent> filter) Retrieves the living-only agents matching a filter.Context.getFilteredAgents(Predicate<ReadOnlyAgent> agentFilter, boolean includeDeadAgents) Returns an agents matching a filterContextCache.getFilteredAgents(Predicate<ReadOnlyAgent> agentFilter) Retrieves the cached agents matching a filter.EnvironmentSimulationContext.getFilteredAgents(Predicate<ReadOnlyAgent> filter) Retrieves the living-only agents matching a filter.EnvironmentSimulationContext.getFilteredAgents(Predicate<ReadOnlyAgent> agentFilter, boolean includeDeadAgents) Returns an agents matching a filterSimulationContext.getFilteredAgents(Predicate<ReadOnlyAgent> filter) Retrieves the agents (excluding dead agents) matching a filter, drawn from the whole population in a synchronised model or from this core's local agents otherwise.SimulationContext.getFilteredAgents(Predicate<ReadOnlyAgent> filter, boolean includeDeadAgents) Retrieves the agents matching a filter, drawn from the whole population in a synchronised model or from this core's local agents otherwise.ContextCache.getGlobalAgentSet()Retrieves the cached global agent set.ContextCache.getLivingOnlyFilteredAgents(Predicate<ReadOnlyAgent> agentFilter) Retrieves the cached living-only agents matching a filter.Methods in modelarium.entities.contexts with parameters of type ReadOnlyAgentSetModifier and TypeMethodDescriptionvoidContextCache.addFilteredAgents(Predicate<ReadOnlyAgent> agentFilter, ReadOnlyAgentSet results) Caches the agents matching a filter.voidContextCache.addGlobalAgentSet(ReadOnlyAgentSet globalAgentSet) Caches the global agent set.voidContextCache.addLivingOnlyFilteredAgents(Predicate<ReadOnlyAgent> agentFilter, ReadOnlyAgentSet results) Caches the living-only agents matching a filter.voidContext.killAgents(ReadOnlyAgentSet agentSet) Kills all the agents in a givenReadOnlyAgentSetinstance.voidEnvironmentSimulationContext.killAgents(ReadOnlyAgentSet agentSet) Kills all the agents in a givenReadOnlyAgentSetinstance.voidSimulationContext.killAgents(ReadOnlyAgentSet agentSet) Kills all the agents in a givenReadOnlyAgentSetinstance.