Uses of Class
modelarium.entities.Environment
Packages that use Environment
Package
Description
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.
Implements Modelarium's worker and co-ordinator runtime.
-
Uses of Environment in modelarium.entities.contexts
Methods in modelarium.entities.contexts that return EnvironmentModifier and TypeMethodDescriptionEnvironmentContext.getThisEntity()Returns the environment this context belongs to.EnvironmentSimulationContext.getThisEntity()Returns the environment this context belongs to. -
Uses of Environment in modelarium.entities.generators
Methods in modelarium.entities.generators that return EnvironmentModifier and TypeMethodDescriptionabstract 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 EnvironmentModifierConstructorDescriptionFunctionalEnvironmentGenerator(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 Environment in modelarium.entities.readonly
Constructors in modelarium.entities.readonly with parameters of type EnvironmentModifierConstructorDescriptionReadOnlyEnvironment(Environment entity) Constructs a new immutable environment wrapping the specified mutable environment. -
Uses of Environment in modelarium.multithreading
Constructors in modelarium.multithreading with parameters of type EnvironmentModifierConstructorDescriptionCoordinatorThread(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.