Package de.ubs.xdm3.wrapper
Class EntityScenarioGeneratorWrapper
java.lang.Object
de.ubs.xdm3.wrapper.GeneratorWrapper<EntityScenarioGeneratorProcessor>
de.ubs.xdm3.wrapper.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.
-
Field Summary
Fields inherited from class de.ubs.xdm3.wrapper.GeneratorWrapper
parameters, processor, processorFactory -
Constructor Summary
ConstructorsConstructorDescriptionEntityScenarioGeneratorWrapper(ProcessorFactory processorFactory, EntityScenarioGeneratorProcessor processor, Map<String, Object> parameters) Constructs a new EntityScenarioGeneratorWrapper with the specified processor factory, processor, and parameters. -
Method Summary
Modifier and TypeMethodDescriptionvoidflush(EntityInstance instance) Flushes the given entity instance.voidGenerates a scenario.Methods inherited from class de.ubs.xdm3.wrapper.GeneratorWrapper
init
-
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 useprocessor- the entity scenario generator processorparameters- 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
Flushes the given entity instance. This method calls the flush method of the processor.- Parameters:
instance- the entity instance to flush
-