Class DefaultEnvironmentGenerator

java.lang.Object
modelarium.environments.EnvironmentGenerator
modelarium.environments.DefaultEnvironmentGenerator

public class DefaultEnvironmentGenerator extends EnvironmentGenerator
Default generator for creating the simulation environment.

This implementation simply duplicates the base attribute set collection defined in the model settings, producing a standard environment instance.

The environment is named "Environment" by default and is intended for general use when no custom generation logic is required.

  • Constructor Details

    • DefaultEnvironmentGenerator

      public DefaultEnvironmentGenerator()
  • Method Details

    • generateEnvironment

      public Environment generateEnvironment(ModelSettings modelSettings)
      Generates the simulation environment using default settings.

      This method creates a deep copy of the base environment attribute set collection from the model settings and uses it to initialise a new Environment instance named "Environment".

      Specified by:
      generateEnvironment in class EnvironmentGenerator
      Parameters:
      modelSettings - the model-wide settings containing the base attribute sets
      Returns:
      a new environment with duplicated attributes