Uses of Class
modelarium.entities.Agent
Packages that use Agent
Package
Description
Provides mutable and read-only collections of agents.
Defines the simulation views supplied to attribute behaviour.
Provides extension points for constructing a model's agents and environment.
Provides read-only views of agents, environments, and their common entity state.
-
Uses of Agent in modelarium.entities.agentsets
Methods in modelarium.entities.agentsets that return AgentModifier and TypeMethodDescriptionAgentSet.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 AgentModifier and TypeMethodDescriptionAgentSet.getAsList()Returns the list of agents in this set.AgentSet.getRandomIterator(RandomGenerator randomGenerator) Returns a randomised iterator over the agents in this set.AgentSet.iterator()Standard iterator over the agents in the order they were added.Methods in modelarium.entities.agentsets with parameters of type AgentModifier and TypeMethodDescriptionvoidAdds an agent to the set.voidAgentSet.addDeepCopy(Agent agent) Adds a deep copy of an agent to the set.Method parameters in modelarium.entities.agentsets with type arguments of type AgentModifier and TypeMethodDescriptionvoidAdds a list of agents to the set.voidAgentSet.addDeepCopy(List<Agent> agents) Adds a deep copy of each agent in a list to the set.Constructor parameters in modelarium.entities.agentsets with type arguments of type Agent -
Uses of Agent in modelarium.entities.contexts
Methods in modelarium.entities.contexts that return AgentModifier and TypeMethodDescriptionAgentContext.getThisEntity()Returns the agent this context belongs to.AgentSimulationContext.getThisEntity()Returns the agent this context belongs to.Methods in modelarium.entities.contexts with parameters of type AgentModifier and TypeMethodDescriptionvoidAdds an agent to the current core's local agent set, creating the context the agent needs to run.voidAdds an agent to the current core's local agent set, creating the context the agent needs to run.voidAdds an agent to the current core's local agent set, creating the context the agent needs to run.Method parameters in modelarium.entities.contexts with type arguments of type AgentModifier and TypeMethodDescriptionvoidAdds each agent in a list to the current core's local agent set, creating the contexts the agents need to run.voidAdds each agent in a list to the current core's local agent set, creating the contexts the agents need to run.voidAdds each agent in a list to the current core's local agent set, creating the contexts the agents need to run. -
Uses of Agent in modelarium.entities.generators
Methods in modelarium.entities.generators that return AgentModifier and TypeMethodDescriptionprotected abstract AgentDefaultAgentGenerator.generateAgent(Config config, RandomGenerator random) Abstract method for generating a single agent instance.protected AgentFunctionalDefaultAgentGenerator.generateAgent(Config config, RandomGenerator random) Generates a single agent by applying the user-provided generator function.Constructor parameters in modelarium.entities.generators with type arguments of type AgentModifierConstructorDescriptionFunctionalDefaultAgentGenerator(BiFunction<Config, RandomGenerator, Agent> generatorFunction) Constructs a new generator with the specified logic. -
Uses of Agent in modelarium.entities.readonly
Constructors in modelarium.entities.readonly with parameters of type AgentModifierConstructorDescriptionReadOnlyAgent(Agent entity) Constructs a new immutable agent wrapping the specified mutable agent.