Uses of Class
modelarium.entities.readonly.ReadOnlyEnvironment
Packages that use ReadOnlyEnvironment
Package
Description
Defines the agents and environment which make up a Modelarium simulation.
Defines the simulation views supplied to attribute behaviour.
Provides policies for ordering local agent execution on each tick.
Provides a lambda-backed scheduler and its tick function interface.
-
Uses of ReadOnlyEnvironment in modelarium.entities
Methods in modelarium.entities that return ReadOnlyEnvironmentModifier and TypeMethodDescriptionEnvironment.getAsImmutable()Creates and returns an immutable version of this environment. -
Uses of ReadOnlyEnvironment in modelarium.entities.contexts
Methods in modelarium.entities.contexts that return ReadOnlyEnvironmentModifier and TypeMethodDescriptionAgentContext.getEnvironment()Returns the model's environment.ContextCache.getEnvironment()Retrieves the cached environment.EnvironmentSimulationContext.getEnvironment()Unsupported for the environment's own context.SimulationContext.getEnvironment()Returns the model's environment.Methods in modelarium.entities.contexts with parameters of type ReadOnlyEnvironmentModifier and TypeMethodDescriptionvoidContextCache.addEnvironment(ReadOnlyEnvironment environment) Caches the environment. -
Uses of ReadOnlyEnvironment in modelarium.scheduler
Methods in modelarium.scheduler with parameters of type ReadOnlyEnvironmentModifier and TypeMethodDescriptionvoidInOrderScheduler.runTick(String threadName, ReadOnlyClock clock, ReadOnlyEnvironment environment, AgentSet agentSet, RandomGenerator random) Executes each agent'srun()method in the order they are stored in the agent set.voidRandomOrderScheduler.runTick(String threadName, ReadOnlyClock clock, ReadOnlyEnvironment environment, AgentSet agentSet, RandomGenerator random) Executes each agent'srun()method in a randomised order.voidScheduler.runTick(String threadName, ReadOnlyClock clock, ReadOnlyEnvironment environment, AgentSet agentSet, RandomGenerator random) Executes a single simulation tick for the provided agent set. -
Uses of ReadOnlyEnvironment in modelarium.scheduler.functional
Methods in modelarium.scheduler.functional with parameters of type ReadOnlyEnvironmentModifier and TypeMethodDescriptionvoidFunctionalScheduler.runTick(String threadName, ReadOnlyClock clock, ReadOnlyEnvironment environment, AgentSet agentSet, RandomGenerator random) Executes a single simulation tick by delegating to the user-provided function.voidTickFunction.runTick(String threadName, ReadOnlyClock clock, ReadOnlyEnvironment environment, AgentSet agentSet, RandomGenerator randomGenerator) Executes a single simulation tick for the provided agent set.