public abstract class AbstractDataManagementStrategy extends Object implements DataManagementStrategy
Modifier and Type | Class and Description |
---|---|
protected static class |
AbstractDataManagementStrategy.ResultHolder |
Modifier and Type | Field and Description |
---|---|
protected AbstractDataManagementStrategy.ResultHolder |
factModelTreeHolder |
protected org.drools.scenariosimulation.api.model.ScenarioSimulationModel |
model |
protected ScenarioSimulationContext |
scenarioSimulationContext |
SIMPLE_CLASSES_MAP
Constructor and Description |
---|
AbstractDataManagementStrategy() |
Modifier and Type | Method and Description |
---|---|
protected SortedMap<String,FactModelTree> |
getInstanceMap(SortedMap<String,FactModelTree> sourceMap)
Returns a
Map of the instances as defined in the grid and the mapped FactModelTree |
protected List<List<String>> |
getPropertiesToHide(ScenarioGridColumn selectedColumn,
ScenarioGridModel scenarioGridModel)
This method returns a
List with the properties of a given Type (Fact, class, other dmn defined) instance,
to be hidden from the right panel for the selected column. |
protected Map<String,List<List<String>>> |
getPropertiesToHide(ScenarioGridModel scenarioGridModel)
This method returns a
Map with the properties of a given Type (Fact, class, other dmn defined) instance,
to be hidden from the right panel. |
protected static FactModelTree |
getSimpleClassFactModelTree(Class clazz) |
void |
setModel(org.drools.scenariosimulation.api.model.ScenarioSimulationModel model) |
protected void |
storeData(FactModelTuple factModelTuple,
TestToolsView.Presenter testToolsPresenter,
ScenarioGridModel scenarioGridModel)
Store data in required target objects
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isADataType, manageScenarioSimulationModelContent, populateTestTools
protected org.drools.scenariosimulation.api.model.ScenarioSimulationModel model
protected ScenarioSimulationContext scenarioSimulationContext
protected AbstractDataManagementStrategy.ResultHolder factModelTreeHolder
public void setModel(org.drools.scenariosimulation.api.model.ScenarioSimulationModel model)
setModel
in interface DataManagementStrategy
protected static FactModelTree getSimpleClassFactModelTree(Class clazz)
protected Map<String,List<List<String>>> getPropertiesToHide(ScenarioGridModel scenarioGridModel)
Map
with the properties of a given Type (Fact, class, other dmn defined) instance,
to be hidden from the right panel.
key: the name of the Fact class (ex. Author), value: list of properties to hide from right panel
If click happen on an already assigned property, all all the properties of given type should be shown;
if, instead, click is on an unassigned property, the already assigned properties must be hidden.
(e.g. inside GIVEN there is an "Author" group; if clicking on "books" property header, the value of the Map
returned by this method is an empty List
;
if click is on an unassigned property column, the value of the Map
returned by this method is a List
.
with all the already assigned Author's properties)scenarioGridModel
- protected List<List<String>> getPropertiesToHide(ScenarioGridColumn selectedColumn, ScenarioGridModel scenarioGridModel)
List
with the properties of a given Type (Fact, class, other dmn defined) instance,
to be hidden from the right panel for the selected column.
If click happen on an already assigned property, all all the properties of given type should be shown;
if, instead, click is on an unassigned property, the already assigned properties must be hidden.
(e.g. inside GIVEN there is an "Author" group; if clicking on "books" property header, this method returns an empty List
;
if click is on an unassigned property column, this method returns a List
.
with all the already assigned Author's properties)
selectedColumn
- scenarioGridModel
- protected void storeData(FactModelTuple factModelTuple, TestToolsView.Presenter testToolsPresenter, ScenarioGridModel scenarioGridModel)
protected SortedMap<String,FactModelTree> getInstanceMap(SortedMap<String,FactModelTree> sourceMap)
Map
of the instances as defined in the grid and the mapped FactModelTree
sourceMap
- Copyright © 2001–2019 JBoss by Red Hat. All rights reserved.