Class EntityScenarioGeneratorWrapper


public class EntityScenarioGeneratorWrapper extends GeneratorWrapper<EntityScenarioGeneratorProcessor>
Wrapper class for the EntityScenarioGeneratorProcessor. This class is responsible for managing the entity scenario generation process. It provides methods to generate scenarios and flush entity instances.
  • Constructor Details

    • EntityScenarioGeneratorWrapper

      public EntityScenarioGeneratorWrapper(ProcessorFactory processorFactory, EntityScenarioGeneratorProcessor processor, Map<String,Object> parameters)
      Constructs a new EntityScenarioGeneratorWrapper with the specified processor factory, processor, and parameters.
      Parameters:
      processorFactory - the processor factory to use
      processor - the entity scenario generator processor
      parameters - the parameters to set in the processor
  • Method Details

    • generateScenario

      public void generateScenario()
      Generates a scenario. This method can be overridden by the generator script. This function is called one time to generate all entities for the scenario. Completed scenarios are handled by the flush() method.
    • flush

      public void flush(EntityInstance instance)
      Flushes the given entity instance. This method calls the flush method of the processor.
      Parameters:
      instance - the entity instance to flush