Uses of Class
modelarium.entities.readonly.ReadOnlyAgent
Packages that use ReadOnlyAgent
Package
Description
Defines the agents and environment which make up a Modelarium simulation.
Provides mutable and read-only collections of agents.
Defines the simulation views supplied to attribute behaviour.
-
Uses of ReadOnlyAgent in modelarium.entities
Methods in modelarium.entities that return ReadOnlyAgentModifier and TypeMethodDescriptionAgent.getAsImmutable()Creates and returns an immutable version of this agent. -
Uses of ReadOnlyAgent in modelarium.entities.agentsets
Methods in modelarium.entities.agentsets that return ReadOnlyAgentModifier and TypeMethodDescriptionReadOnlyAgentSet.get(int index) Retrieves an agent by index.Retrieves an agent by name.Methods in modelarium.entities.agentsets that return types with arguments of type ReadOnlyAgentModifier and TypeMethodDescriptionReadOnlyAgentSet.getAsList()Returns the agents in this set as a list of read-only views.ReadOnlyAgentSet.getRandomIterator(RandomGenerator randomGenerator) Returns a randomised iterator over the agents in this set.ReadOnlyAgentSet.iterator()Standard iterator over the agents in the order they were added.Method parameters in modelarium.entities.agentsets with type arguments of type ReadOnlyAgentModifier and TypeMethodDescriptionAgentSet.getFilteredAgents(Predicate<ReadOnlyAgent> agentFilter) Returns a living-only filtered view of the agent set.AgentSet.getFilteredAgents(Predicate<ReadOnlyAgent> agentFilter, boolean includeDeadAgents) Returns a filtered view of the 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 ReadOnlyAgent in modelarium.entities.contexts
Methods in modelarium.entities.contexts that return ReadOnlyAgentModifier and TypeMethodDescriptionRetrieves an agent by name.ContextCache.getAgent(String agentName) Retrieves a cached agent by name.Retrieves an agent by name.Retrieves an agent by name, whether it lives on this core or (in a synchronised model) on another core.Methods in modelarium.entities.contexts with parameters of type ReadOnlyAgentModifier and TypeMethodDescriptionvoidContextCache.addAgent(ReadOnlyAgent agent) Caches an individually retrieved agent.voidContext.killAgent(ReadOnlyAgent agent) Kills the agent of the givenReadOnlyAgentinstance.voidEnvironmentSimulationContext.killAgent(ReadOnlyAgent agent) Kills the agent of the givenReadOnlyAgentinstance.voidSimulationContext.killAgent(ReadOnlyAgent agent) Kills the agent of the givenReadOnlyAgentinstance.Method parameters in modelarium.entities.contexts with type arguments of type ReadOnlyAgentModifier and TypeMethodDescriptionvoidContextCache.addFilteredAgents(Predicate<ReadOnlyAgent> agentFilter, ReadOnlyAgentSet results) Caches the agents matching a filter.voidContextCache.addLivingOnlyFilteredAgents(Predicate<ReadOnlyAgent> agentFilter, ReadOnlyAgentSet results) Caches the living-only agents matching a filter.booleanContextCache.doesAgentFilterExist(Predicate<ReadOnlyAgent> agentFilter) Returns whether a filtered agent set has been cached for the given filter.booleanContextCache.doesLivingOnlyAgentFilterExist(Predicate<ReadOnlyAgent> agentFilter) Returns whether a living-only filtered agent set has been cached for the given filter.Context.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.getLivingOnlyFilteredAgents(Predicate<ReadOnlyAgent> agentFilter) Retrieves the cached living-only agents matching a filter.