@Portable public class Scenario extends Object
Constructor and Description |
---|
Scenario() |
Scenario(SimulationDescriptor simulationDescriptor) |
public Scenario()
public Scenario(SimulationDescriptor simulationDescriptor)
public List<FactMappingValue> getUnmodifiableFactMappingValues()
NOTE: list order could not be aligned to factMapping order. Use sort()
before call this method
to ensure the order.
Best way to have ordered factMappingValues is to iterate over SimulationDescriptor.factMappings
and use
getFactMappingValue(FactIdentifier, ExpressionIdentifier)
public void removeFactMappingValueByIdentifiers(FactIdentifier factIdentifier, ExpressionIdentifier expressionIdentifier)
public void removeFactMappingValue(FactMappingValue toRemove)
public FactMappingValue addMappingValue(FactIdentifier factIdentifier, ExpressionIdentifier expressionIdentifier, Object value)
public FactMappingValue addOrUpdateMappingValue(FactIdentifier factIdentifier, ExpressionIdentifier expressionIdentifier, Object value)
public Optional<FactMappingValue> getFactMappingValue(FactIdentifier factIdentifier, ExpressionIdentifier expressionIdentifier)
public Optional<FactMappingValue> getFactMappingValueByIndex(int index)
public List<FactMappingValue> getFactMappingValuesByFactIdentifier(FactIdentifier factIdentifier)
public void setDescription(String name)
public String getDescription()
public Collection<String> getFactNames()
public void sort()
public void resetErrors()
Copyright © 2001–2019 JBoss by Red Hat. All rights reserved.