Uses of Class
modelarium.agents.AgentSet
Packages that use AgentSet
Package
Description
Modelarium API.
Agent abstractions used in Modelarium simulations.
Internal multithreading and parallel execution support.
Result recording and retrieval for Modelarium simulations.
Scheduling and execution control for Modelarium simulations.
-
Uses of AgentSet in modelarium
Methods in modelarium that return AgentSetModifier and TypeMethodDescriptionModelElementAccessor.getFilteredAgents(Predicate<Agent> filter) Retrieves a set of agents that match the given filter predicate.Constructors in modelarium with parameters of type AgentSetModifierConstructorDescriptionModelElementAccessor(ModelElement modelElement, AgentSet localAgentSet, ModelSettings settings, WorkerCache cache, RequestResponseInterface requestResponseInterface, Environment localEnvironment) Constructs a new accessor for a model element. -
Uses of AgentSet in modelarium.agents
Methods in modelarium.agents that return AgentSetModifier and TypeMethodDescriptionAgentSet.duplicate()Returns a duplicate of this agent set.AgentGenerator.generateAgents(ModelSettings modelSettings) Generates a completeAgentSetbased on the number of agents specified in the model settings.AgentSet.getFilteredAgents(Predicate<Agent> agentFilter) Returns a filtered view of the agent set.Methods in modelarium.agents that return types with arguments of type AgentSetModifier and TypeMethodDescriptionAgentGenerator.getAgentsForEachCore(ModelSettings modelSettings) Distributes agents across processing cores in a round-robin fashion.Methods in modelarium.agents with parameters of type AgentSet -
Uses of AgentSet in modelarium.multithreading
Constructors in modelarium.multithreading with parameters of type AgentSetModifierConstructorDescriptionCoordinatorThread(String name, ModelSettings settings, Environment environment, RequestResponseController requestResponseController, AgentSet globalAgentSet) Constructs the coordinator thread with required references.WorkerThread(String threadName, ModelSettings settings, RequestResponseController requestResponseController, AgentSet agents) Constructs a new worker thread to simulate a subset of agents. -
Uses of AgentSet in modelarium.multithreading.requestresponse
Methods in modelarium.multithreading.requestresponse that return AgentSetModifier and TypeMethodDescriptionRequestResponseInterface.getFilteredAgentsFromCoordinator(String requesterAgentName, Predicate<Agent> agentFilter) Requests a filtered subset of agents from the coordinator.protected AgentSetCoordinatorRequestHandler.getGlobalAgentSet()Methods in modelarium.multithreading.requestresponse with parameters of type AgentSetModifier and TypeMethodDescriptionstatic voidCoordinatorRequestHandler.initialise(String threadName, ModelSettings settings, BlockingQueue<Response> responseQueue, AgentSet globalAgentSet, Environment environment) Initialises the handler map for the coordinator, assigning an instance of each request type's handler.voidRequestResponseInterface.updateCoordinatorAgents(AgentSet agentSet) Sends an update to the coordinator with the current agent set for this thread.Constructors in modelarium.multithreading.requestresponse with parameters of type AgentSetModifierConstructorDescriptionAgentAccess(String threadName, ModelSettings settings, BlockingQueue<Response> responseQueue, AgentSet globalAgentSet, Environment environment) AllWorkersFinishTick(String threadName, ModelSettings settings, BlockingQueue<Response> responseQueue, AgentSet globalAgentSet, Environment environment) AllWorkersUpdateCoordinator(String threadName, ModelSettings settings, BlockingQueue<Response> responseQueue, AgentSet globalAgentSet, Environment environment) CoordinatorRequestHandler(String threadName, ModelSettings settings, BlockingQueue<Response> responseQueue, AgentSet globalAgentSet, Environment environment) EnvironmentAttributesAccess(String threadName, ModelSettings settings, BlockingQueue<Response> responseQueue, AgentSet globalAgentSet, Environment environment) FilteredAgentsAccess(String threadName, ModelSettings settings, BlockingQueue<Response> responseQueue, AgentSet globalAgentSet, Environment environment) UpdateCoordinatorAgents(String threadName, ModelSettings settings, BlockingQueue<Response> responseQueue, AgentSet globalAgentSet, Environment environment) -
Uses of AgentSet in modelarium.multithreading.utils
Methods in modelarium.multithreading.utils that return AgentSetModifier and TypeMethodDescriptionWorkerCache.getFilteredAgents(Predicate<Agent> agentFilter) Retrieves a filtered set of agents using the cached filter.Methods in modelarium.multithreading.utils with parameters of type AgentSet -
Uses of AgentSet in modelarium.results
Methods in modelarium.results with parameters of type AgentSetModifier and TypeMethodDescriptionvoidResults.setAgentNames(AgentSet agents) Stores the names of all agents in the model.Method parameters in modelarium.results with type arguments of type AgentSetModifier and TypeMethodDescriptionvoidResults.setAgentNames(List<AgentSet> agentSetList) Stores the names of all agents from a list of agent sets.Constructors in modelarium.results with parameters of type AgentSetModifierConstructorDescriptionAgentResults(AgentSet agentSet) Constructs agent results from a given agent set. -
Uses of AgentSet in modelarium.scheduler
Methods in modelarium.scheduler with parameters of type AgentSetModifier and TypeMethodDescriptionvoidExecutes a single simulation tick by delegating to the user-provided function.voidExecutes each agent'srun()method in the order they are stored in the agent set.voidExecutes a single simulation tick for the provided agent set.voidExecutes each agent'srun()method in a randomised order.Constructor parameters in modelarium.scheduler with type arguments of type AgentSetModifierConstructorDescriptionFunctionalScheduler(Consumer<AgentSet> tickFunction) Constructs a FunctionalScheduler with the specified tick function.