Uses of Record Class
modelarium.Config
Packages that use Config
Package
Description
Provides Modelarium's primary configuration and execution API.
Defines the simulation views supplied to attribute behaviour.
Provides extension points for constructing a model's agents and environment.
Implements Modelarium's worker and co-ordinator runtime.
-
Uses of Config in modelarium
Methods in modelarium that return ConfigModifier and TypeMethodDescriptionConfig.ConfigBuilder.build()Creates a new instance ofConfigbased on the configuration settings provided using the other methods.Constructors in modelarium with parameters of type Config -
Uses of Config in modelarium.entities.contexts
Methods in modelarium.entities.contexts that return Config -
Uses of Config in modelarium.entities.generators
Methods in modelarium.entities.generators with parameters of type ConfigModifier 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.DefaultAgentGenerator.generateAgents(Config config, RandomGenerator random) Generates a completeAgentSetbased on the number of agents specified in the model settings.AgentGenerator.generateAgentsForEachThread(Config config, RandomGenerator random) Generates the model's agents and distributes them across the model's worker cores.DefaultAgentGenerator.generateAgentsForEachThread(Config config, RandomGenerator random) Distributes agents across processing threads in a round-robin fashion.FunctionalAgentGenerator.generateAgentsForEachThread(Config config, RandomGenerator random) Generates the model's agents using the logic specified during construction and distributes them across the model's worker cores.abstract EnvironmentEnvironmentGenerator.generateEnvironment(Config config, RandomGenerator random) Creates and returns a fully initialisedEnvironmentfor the simulation.FunctionalEnvironmentGenerator.generateEnvironment(Config config, RandomGenerator random) Generates the environment by applying the user-provided generator function.Constructor parameters in modelarium.entities.generators with type arguments of type ConfigModifierConstructorDescriptionFunctionalAgentGenerator(BiFunction<Config, RandomGenerator, List<AgentSet>> getAgentsForEachThreadFunction) Constructs a new generator with the specified logic and uses the default reset logic.FunctionalAgentGenerator(BiFunction<Config, RandomGenerator, List<AgentSet>> getAgentsForEachThreadFunction, Runnable resetFunction) Constructs a new generator with the specified logic.FunctionalDefaultAgentGenerator(BiFunction<Config, RandomGenerator, Agent> generatorFunction) Constructs a new generator with the specified logic.FunctionalEnvironmentGenerator(BiFunction<Config, RandomGenerator, Environment> generatorFunction) Constructs a new functional generator and uses the default reset logic.FunctionalEnvironmentGenerator(BiFunction<Config, RandomGenerator, Environment> generatorFunction, Runnable resetFunction) Constructs a new functional generator. -
Uses of Config in modelarium.multithreading
Constructors in modelarium.multithreading with parameters of type ConfigModifierConstructorDescriptionCoordinatorThread(String name, Config config, Environment environment, modelarium.multithreading.requestresponse.RequestResponseController requestResponseController, modelarium.clock.Clock sharedClock) Constructs the coordinator thread with required references.CoordinatorThread(String name, Config config, Environment environment, modelarium.multithreading.requestresponse.RequestResponseController requestResponseController, modelarium.clock.Clock sharedClock, AgentSet predefinedGlobalAgentSet, Map<String, String> agentThreadMap) Constructs the coordinator thread with required references.WorkerThread(String threadName, Config config, modelarium.multithreading.requestresponse.RequestResponseController requestResponseController, Environment environment, AgentSet agentsInThread, modelarium.clock.Clock sharedClock, RandomGenerator randomGenerator) Constructs a new worker thread to simulate a subset of agents.