Class EnvironmentGenerator

java.lang.Object
modelarium.environments.EnvironmentGenerator
Direct Known Subclasses:
DefaultEnvironmentGenerator, FunctionalEnvironmentGenerator

public abstract class EnvironmentGenerator extends Object
Abstract base class responsible for generating the simulation Environment.

Concrete subclasses should use the ModelSettings to construct and return a new instance of Environment, complete with its attribute sets and configuration.

This abstraction allows environments to be modular and varied across different simulations.

  • Constructor Details

    • EnvironmentGenerator

      public EnvironmentGenerator()
  • Method Details

    • generateEnvironment

      public abstract Environment generateEnvironment(ModelSettings modelSettings)
      Creates and returns a fully initialised Environment for the simulation.
      Parameters:
      modelSettings - the global model settings used to configure the environment
      Returns:
      a new Environment instance