Class AbstractScesimData
- java.lang.Object
-
- org.drools.scenariosimulation.api.model.AbstractScesimData
-
- Direct Known Subclasses:
BackgroundData,Scenario
public abstract class AbstractScesimData extends Object
Abstract class representing the values insideAbstractScesimModel, to be extended by concrete implementations
-
-
Field Summary
Fields Modifier and Type Field Description protected List<FactMappingValue>factMappingValuesList of values to be used to test this scenario
-
Constructor Summary
Constructors Constructor Description AbstractScesimData()
-
Method Summary
-
-
-
Field Detail
-
factMappingValues
protected final List<FactMappingValue> factMappingValues
List of values to be used to test this scenario
-
-
Method Detail
-
getUnmodifiableFactMappingValues
public List<FactMappingValue> getUnmodifiableFactMappingValues()
Returns an unmodifiable list wrapping the backed oneNOTE: list order could not be aligned to factMapping order.
-
removeFactMappingValueByIdentifiers
public void removeFactMappingValueByIdentifiers(FactIdentifier factIdentifier, ExpressionIdentifier expressionIdentifier)
-
removeFactMappingValue
public void removeFactMappingValue(FactMappingValue toRemove)
-
addMappingValue
public FactMappingValue addMappingValue(FactIdentifier factIdentifier, ExpressionIdentifier expressionIdentifier, Object value)
-
addOrUpdateMappingValue
public FactMappingValue addOrUpdateMappingValue(FactIdentifier factIdentifier, ExpressionIdentifier expressionIdentifier, Object value)
-
getFactMappingValue
public Optional<FactMappingValue> getFactMappingValue(FactIdentifier factIdentifier, ExpressionIdentifier expressionIdentifier)
-
getFactMappingValue
public Optional<FactMappingValue> getFactMappingValue(FactMapping factMapping)
-
getFactMappingValuesByFactIdentifier
public List<FactMappingValue> getFactMappingValuesByFactIdentifier(FactIdentifier factIdentifier)
-
getDescription
public String getDescription()
-
setDescription
public void setDescription(String name)
-
getFactNames
public Collection<String> getFactNames()
-
resetErrors
public void resetErrors()
-
-