Class DMNSimulationSettingsCreationStrategy
- java.lang.Object
-
- org.drools.workbench.screens.scenariosimulation.backend.server.util.DMNSimulationSettingsCreationStrategy
-
- All Implemented Interfaces:
SimulationSettingsCreationStrategy
@ApplicationScoped public class DMNSimulationSettingsCreationStrategy extends Object implements SimulationSettingsCreationStrategy
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDMNSimulationSettingsCreationStrategy.FactMappingExtractor
-
Field Summary
Fields Modifier and Type Field Description protected org.drools.workbench.screens.scenariosimulation.service.DMNTypeServicedmnTypeService
-
Constructor Summary
Constructors Constructor Description DMNSimulationSettingsCreationStrategy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidaddEmptyColumnsIfNeeded(org.drools.scenariosimulation.api.model.Simulation simulation, org.drools.scenariosimulation.api.model.ScenarioWithIndex scenarioWithIndex)If DMN model is empty, contains only inputs or only outputs this method add one GIVEN and/or EXPECT empty columnprotected voidaddFactMapping(DMNSimulationSettingsCreationStrategy.FactMappingExtractor factMappingExtractor, org.drools.workbench.screens.scenariosimulation.model.typedescriptor.FactModelTree factModelTree, List<String> previousSteps, Map<String,org.drools.workbench.screens.scenariosimulation.model.typedescriptor.FactModelTree> hiddenValues)org.drools.scenariosimulation.api.model.SettingscreateSettings(org.uberfire.backend.vfs.Path context, String dmnFilePath)org.drools.scenariosimulation.api.model.SimulationcreateSimulation(org.uberfire.backend.vfs.Path context, String dmnFilePath)protected intfindNewIndexOfGroup(org.drools.scenariosimulation.api.model.ScesimModelDescriptor simulationDescriptor, org.drools.scenariosimulation.api.model.FactMappingType factMappingType)protected org.drools.workbench.screens.scenariosimulation.model.typedescriptor.FactModelTuplegetFactModelTuple(org.uberfire.backend.vfs.Path context, String dmnFilePath)protected voidinternalAddToScenario(DMNSimulationSettingsCreationStrategy.FactMappingExtractor factMappingExtractor, org.drools.workbench.screens.scenariosimulation.model.typedescriptor.FactModelTree factModelTree, List<String> readOnlyPreviousSteps, Map<String,org.drools.workbench.screens.scenariosimulation.model.typedescriptor.FactModelTree> hiddenValues, Set<String> alreadyVisited)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.drools.workbench.screens.scenariosimulation.backend.server.util.SimulationSettingsCreationStrategy
createBackground, createEmptyColumn, createScesimDataWithIndex
-
-
-
-
Method Detail
-
createSimulation
public org.drools.scenariosimulation.api.model.Simulation createSimulation(org.uberfire.backend.vfs.Path context, String dmnFilePath)- Specified by:
createSimulationin interfaceSimulationSettingsCreationStrategy
-
createSettings
public org.drools.scenariosimulation.api.model.Settings createSettings(org.uberfire.backend.vfs.Path context, String dmnFilePath)- Specified by:
createSettingsin interfaceSimulationSettingsCreationStrategy
-
addEmptyColumnsIfNeeded
protected void addEmptyColumnsIfNeeded(org.drools.scenariosimulation.api.model.Simulation simulation, org.drools.scenariosimulation.api.model.ScenarioWithIndex scenarioWithIndex)If DMN model is empty, contains only inputs or only outputs this method add one GIVEN and/or EXPECT empty column- Parameters:
simulation-scenarioWithIndex-
-
findNewIndexOfGroup
protected int findNewIndexOfGroup(org.drools.scenariosimulation.api.model.ScesimModelDescriptor simulationDescriptor, org.drools.scenariosimulation.api.model.FactMappingType factMappingType)
-
getFactModelTuple
protected org.drools.workbench.screens.scenariosimulation.model.typedescriptor.FactModelTuple getFactModelTuple(org.uberfire.backend.vfs.Path context, String dmnFilePath)
-
addFactMapping
protected void addFactMapping(DMNSimulationSettingsCreationStrategy.FactMappingExtractor factMappingExtractor, org.drools.workbench.screens.scenariosimulation.model.typedescriptor.FactModelTree factModelTree, List<String> previousSteps, Map<String,org.drools.workbench.screens.scenariosimulation.model.typedescriptor.FactModelTree> hiddenValues)
-
internalAddToScenario
protected void internalAddToScenario(DMNSimulationSettingsCreationStrategy.FactMappingExtractor factMappingExtractor, org.drools.workbench.screens.scenariosimulation.model.typedescriptor.FactModelTree factModelTree, List<String> readOnlyPreviousSteps, Map<String,org.drools.workbench.screens.scenariosimulation.model.typedescriptor.FactModelTree> hiddenValues, Set<String> alreadyVisited)
-
-