public abstract class AbstractDataManagementStrategy extends Object implements DataManagementStrategy
| Modifier and Type | Class and Description |
|---|---|
static class |
AbstractDataManagementStrategy.ResultHolder |
| Modifier and Type | Field and Description |
|---|---|
protected AbstractDataManagementStrategy.ResultHolder |
factModelTreeHolder |
protected org.drools.scenariosimulation.api.model.ScenarioSimulationModel |
model |
SIMPLE_CLASSES_MAP| Constructor and Description |
|---|
AbstractDataManagementStrategy() |
| Modifier and Type | Method and Description |
|---|---|
SortedMap<String,FactModelTree> |
getInstanceMap(SortedMap<String,FactModelTree> sourceMap)
Returns a
Map of the instances as defined in the grid and the mapped FactModelTree |
<T extends org.drools.scenariosimulation.api.model.AbstractScesimModel<E>,E extends org.drools.scenariosimulation.api.model.AbstractScesimData> |
getPropertiesToHide(AbstractScesimGridModel<T,E> abstractScesimGridModel)
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 <T extends org.drools.scenariosimulation.api.model.AbstractScesimModel<E>,E extends org.drools.scenariosimulation.api.model.AbstractScesimData> |
getPropertiesToHide(ScenarioGridColumn selectedColumn,
AbstractScesimGridModel<T,E> abstractScesimGridModel)
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. |
static FactModelTree |
getSimpleClassFactModelTree(String simpleClass,
String canonicalName) |
void |
setModel(org.drools.scenariosimulation.api.model.ScenarioSimulationModel model) |
void |
storeData(FactModelTuple factModelTuple,
TestToolsView.Presenter testToolsPresenter,
ScenarioSimulationContext context,
GridWidget gridWidget)
Store data in required target objects
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisADataType, manageScenarioSimulationModelContent, populateTestToolsprotected org.drools.scenariosimulation.api.model.ScenarioSimulationModel model
protected AbstractDataManagementStrategy.ResultHolder factModelTreeHolder
public void setModel(org.drools.scenariosimulation.api.model.ScenarioSimulationModel model)
setModel in interface DataManagementStrategypublic static FactModelTree getSimpleClassFactModelTree(String simpleClass, String canonicalName)
public <T extends org.drools.scenariosimulation.api.model.AbstractScesimModel<E>,E extends org.drools.scenariosimulation.api.model.AbstractScesimData> Map<String,List<List<String>>> getPropertiesToHide(AbstractScesimGridModel<T,E> abstractScesimGridModel)
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)abstractScesimGridModel - protected <T extends org.drools.scenariosimulation.api.model.AbstractScesimModel<E>,E extends org.drools.scenariosimulation.api.model.AbstractScesimData> List<List<String>> getPropertiesToHide(ScenarioGridColumn selectedColumn, AbstractScesimGridModel<T,E> abstractScesimGridModel)
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 - abstractScesimGridModel - public void storeData(FactModelTuple factModelTuple, TestToolsView.Presenter testToolsPresenter, ScenarioSimulationContext context, GridWidget gridWidget)
public SortedMap<String,FactModelTree> getInstanceMap(SortedMap<String,FactModelTree> sourceMap)
Map of the instances as defined in the grid and the mapped FactModelTreesourceMap - Copyright © 2001–2020 JBoss by Red Hat. All rights reserved.