Uses of Class
modelarium.ModelSettings
Packages that use ModelSettings
Package
Description
Modelarium API.
Agent abstractions used in Modelarium simulations.
Environment abstractions for Modelarium simulations.
Internal multithreading and parallel execution support.
-
Uses of ModelSettings in modelarium
Constructors in modelarium with parameters of type ModelSettingsModifierConstructorDescriptionModel(ModelSettings settings) Constructs a new model instance with the specified settings.ModelElementAccessor(ModelElement modelElement, AgentSet localAgentSet, ModelSettings settings, WorkerCache cache, RequestResponseInterface requestResponseInterface, Environment localEnvironment) Constructs a new accessor for a model element. -
Uses of ModelSettings in modelarium.agents
Methods in modelarium.agents with parameters of type ModelSettingsModifier and TypeMethodDescriptionprotected 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) AgentGenerator.generateAgents(ModelSettings modelSettings) Generates a completeAgentSetbased on the number of agents specified in the model settings.AgentGenerator.getAgentsForEachCore(ModelSettings modelSettings) Distributes agents across processing cores in a round-robin fashion.Constructor parameters in modelarium.agents with type arguments of type ModelSettingsModifierConstructorDescriptionFunctionalAgentGenerator(Function<ModelSettings, Agent> generatorFunction) Constructs a new generator with the specified logic. -
Uses of ModelSettings in modelarium.environments
Methods in modelarium.environments with parameters of type ModelSettingsModifier and TypeMethodDescriptionDefaultEnvironmentGenerator.generateEnvironment(ModelSettings modelSettings) Generates the simulation environment using default settings.abstract EnvironmentEnvironmentGenerator.generateEnvironment(ModelSettings modelSettings) Creates and returns a fully initialisedEnvironmentfor the simulation.FunctionalEnvironmentGenerator.generateEnvironment(ModelSettings modelSettings) Constructor parameters in modelarium.environments with type arguments of type ModelSettingsModifierConstructorDescriptionFunctionalEnvironmentGenerator(Function<ModelSettings, Environment> generatorFunction) Constructs a new functional generator. -
Uses of ModelSettings in modelarium.multithreading
Constructors in modelarium.multithreading with parameters of type ModelSettingsModifierConstructorDescriptionCoordinatorThread(String name, ModelSettings settings, Environment environment, RequestResponseController requestResponseController) Constructs the coordinator thread with required references.CoordinatorThread(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 ModelSettings in modelarium.multithreading.requestresponse
Methods in modelarium.multithreading.requestresponse that return ModelSettingsModifier and TypeMethodDescriptionprotected ModelSettingsCoordinatorRequestHandler.getSettings()Methods in modelarium.multithreading.requestresponse with parameters of type ModelSettingsModifier 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.Constructors in modelarium.multithreading.requestresponse with parameters of type ModelSettingsModifierConstructorDescriptionAgentAccess(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) RequestResponseController(ModelSettings settings) Constructs a new request-response controller for coordinating simulation threads.RequestResponseInterface(String name, ModelSettings settings, RequestResponseController requestResponseController) Constructs a new interface bound to the given model element or thread.UpdateCoordinatorAgents(String threadName, ModelSettings settings, BlockingQueue<Response> responseQueue, AgentSet globalAgentSet, Environment environment)