Class AbstractScesimModel<T extends AbstractScesimData>
java.lang.Object
org.drools.scenariosimulation.api.model.AbstractScesimModel<T>
- Direct Known Subclasses:
Background,Simulation
Abstract class representing the content model of the grid, to be extended by concrete implementations
-
Field Summary
FieldsModifier and TypeFieldDescriptionContains list of scenarios to testprotected final ScesimModelDescriptorDescribes structure of the simulation -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddData()abstract TaddData(int index) voidclear()voidprotected voidclearDatas(FactMapping toRemove) cloneData(int sourceIndex, int targetIndex) abstract AbstractScesimModel<T>getDataByIndex(int index) Returns an unmodifiable list wrapping the backed onevoidremoveData(T toRemove) voidremoveDataByIndex(int index) voidremoveFactMapping(FactMapping toRemove) voidremoveFactMappingByIndex(int index) voidreplaceData(int index, T newScesimData) voidprotected <Z extends ScesimDataWithIndex<T>>
List<Z>toScesimDataWithIndex(BiFunction<Integer, T, Z> producer)
-
Field Details
-
scesimModelDescriptor
Describes structure of the simulation -
scesimData
Contains list of scenarios to test
-
-
Constructor Details
-
AbstractScesimModel
public AbstractScesimModel()
-
-
Method Details
-
cloneModel
-
addData
-
getUnmodifiableData
Returns an unmodifiable list wrapping the backed one- Returns:
-
removeDataByIndex
public void removeDataByIndex(int index) -
removeData
-
getDataByIndex
-
addData
-
replaceData
-
cloneData
-
clear
public void clear() -
clearDatas
public void clearDatas() -
resetErrors
public void resetErrors() -
getScesimModelDescriptor
-
removeFactMappingByIndex
public void removeFactMappingByIndex(int index) -
removeFactMapping
-
clearDatas
-
toScesimDataWithIndex
protected <Z extends ScesimDataWithIndex<T>> List<Z> toScesimDataWithIndex(BiFunction<Integer, T, Z> producer)
-