Uses of Class
modelarium.agents.Agent
Packages that use Agent
Package
Description
Modelarium API.
Agent abstractions used in Modelarium simulations.
-
Uses of Agent in modelarium
Methods in modelarium that return AgentModifier and TypeMethodDescriptionModelElementAccessor.getAgentByName(String targetAgentName) Retrieves an agent by name, checking local storage first, then cache, then (if enabled) contacting the coordinator.Method parameters in modelarium with type arguments of type AgentModifier and TypeMethodDescriptionModelElementAccessor.getFilteredAgents(Predicate<Agent> filter) Retrieves a set of agents that match the given filter predicate. -
Uses of Agent in modelarium.agents
Methods in modelarium.agents that return AgentModifier and TypeMethodDescriptionAgent.deepCopy()protected abstract AgentAgentGenerator.generateAgent(ModelSettings modelSettings) Abstract method for generating a single agent instance.DefaultAgentGenerator.generateAgent(ModelSettings modelSettings) Generates a single agent with a unique name and a deep copy of the base attribute set.protected AgentFunctionalAgentGenerator.generateAgent(ModelSettings modelSettings) AgentSet.get(int index) Retrieves an agent by index.Retrieves an agent by name.Methods in modelarium.agents that return types with arguments of type AgentModifier and TypeMethodDescriptionAgentSet.getAsList()Returns the list of agents in this set.AgentSet.getRandomIterator()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.agents with parameters of type AgentMethod parameters in modelarium.agents with type arguments of type AgentModifier and TypeMethodDescriptionvoidAdds a list of agents to the set.AgentSet.getFilteredAgents(Predicate<Agent> agentFilter) Returns a filtered view of the agent set.Constructor parameters in modelarium.agents with type arguments of type AgentModifierConstructorDescriptionConstructs a new agent set from a list of agents, without deep copying.Constructs a new agent set from a list of agents, with optional deep copying.FunctionalAgentGenerator(Function<ModelSettings, Agent> generatorFunction) Constructs a new generator with the specified logic. -
Uses of Agent in modelarium.multithreading.requestresponse
Methods in modelarium.multithreading.requestresponse that return AgentModifier and TypeMethodDescriptionRequestResponseInterface.getAgentFromCoordinator(String requesterAgentName, String targetAgentName) Requests a specific agent from the coordinator.Method parameters in modelarium.multithreading.requestresponse with type arguments of type AgentModifier and TypeMethodDescriptionRequestResponseInterface.getFilteredAgentsFromCoordinator(String requesterAgentName, Predicate<Agent> agentFilter) Requests a filtered subset of agents from the coordinator. -
Uses of Agent in modelarium.multithreading.utils
Methods in modelarium.multithreading.utils that return AgentModifier and TypeMethodDescriptionRetrieves an agent from the cache by name.Methods in modelarium.multithreading.utils with parameters of type AgentModifier and TypeMethodDescriptionvoidAdds a single agent to the cache.Method parameters in modelarium.multithreading.utils with type arguments of type AgentModifier and TypeMethodDescriptionvoidWorkerCache.addAgentFilter(Predicate<Agent> agentFilter) Adds a new agent filter to the list of cached filters.booleanWorkerCache.doesAgentFilterExist(Predicate<Agent> agentFilter) Checks whether a specific agent filter has already been applied and cached.WorkerCache.getFilteredAgents(Predicate<Agent> agentFilter) Retrieves a filtered set of agents using the cached filter.