Class FunctionalEnvironmentGenerator

java.lang.Object
modelarium.environments.EnvironmentGenerator
modelarium.environments.FunctionalEnvironmentGenerator

public class FunctionalEnvironmentGenerator extends EnvironmentGenerator
A functional implementation of EnvironmentGenerator that delegates environment creation to a user-provided function.

Useful when working across languages (e.g. from Python), or when modular configuration is required without subclassing.

  • Constructor Details

    • FunctionalEnvironmentGenerator

      public FunctionalEnvironmentGenerator(Function<ModelSettings,Environment> generatorFunction)
      Constructs a new functional generator.
      Parameters:
      generatorFunction - the function used to generate the environment
  • Method Details