Class ScesimModelDescriptor
- java.lang.Object
-
- org.drools.scenariosimulation.api.model.ScesimModelDescriptor
-
public class ScesimModelDescriptor extends Object
ScesimModelDescriptordescribes the template of a concreteAbstractScesimModel
-
-
Constructor Summary
Constructors Constructor Description ScesimModelDescriptor()
-
Method Summary
-
-
-
Method Detail
-
getUnmodifiableFactMappings
public List<FactMapping> getUnmodifiableFactMappings()
Returns an unmodifiable list wrapping the backed one- Returns:
-
getFactIdentifiers
public Set<FactIdentifier> getFactIdentifiers()
-
getFactMappings
public List<FactMapping> getFactMappings()
-
moveFactMapping
public void moveFactMapping(int oldIndex, int newIndex)
-
getFactMappingByIndex
public FactMapping getFactMappingByIndex(int index)
-
getIndexByIdentifier
public int getIndexByIdentifier(FactIdentifier factIdentifier, ExpressionIdentifier expressionIdentifier)
-
getFactMappingsByFactName
public Stream<FactMapping> getFactMappingsByFactName(String factName)
-
getFactMapping
public Optional<FactMapping> getFactMapping(FactIdentifier factIdentifier, ExpressionIdentifier ei)
-
addFactMapping
public FactMapping addFactMapping(int index, FactMapping toClone)
This method clone the givenFactMappingand insert the cloned instance at the specified index- Parameters:
index-toClone-- Returns:
- the cloned
FactMapping
-
addFactMapping
public FactMapping addFactMapping(FactIdentifier factIdentifier, ExpressionIdentifier expressionIdentifier)
-
addFactMapping
public FactMapping addFactMapping(String factAlias, FactIdentifier factIdentifier, ExpressionIdentifier expressionIdentifier)
-
addFactMapping
public FactMapping addFactMapping(int index, FactIdentifier factIdentifier, ExpressionIdentifier expressionIdentifier)
-
addFactMapping
public FactMapping addFactMapping(int index, String factAlias, FactIdentifier factIdentifier, ExpressionIdentifier expressionIdentifier)
-
clear
public void clear()
-
-