Browse Source
added a few clarifying comments in JaniNextStateGenerator
tempestpy_adaptions
Tim Quatmann
4 years ago
No known key found for this signature in database
GPG Key ID: 6EDE19592731EEC3
1 changed files with
4 additions and
1 deletions
-
src/storm/generator/JaniNextStateGenerator.cpp
|
|
@ -550,6 +550,8 @@ namespace storm { |
|
|
|
|
|
|
|
template<typename ValueType, typename StateType> |
|
|
|
StateBehavior<ValueType, StateType> JaniNextStateGenerator<ValueType, StateType>::expand(StateToIdCallback const& stateToIdCallback) { |
|
|
|
// The evaluator should have the default values of the transient variables right now.
|
|
|
|
|
|
|
|
// Prepare the result, in case we return early.
|
|
|
|
StateBehavior<ValueType, StateType> result; |
|
|
|
|
|
|
@ -561,10 +563,11 @@ namespace storm { |
|
|
|
auto transientVariableValuation = getTransientVariableValuationAtLocations(locations, *this->evaluator); |
|
|
|
transientVariableValuation.setInEvaluator(*this->evaluator, this->getOptions().isExplorationChecksSet()); |
|
|
|
result.addStateRewards(evaluateRewardExpressions()); |
|
|
|
// Set back transient variables to default values so we are ready to process the transition assignments
|
|
|
|
this->transientVariableInformation.setDefaultValuesInEvaluator(*this->evaluator); |
|
|
|
|
|
|
|
|
|
|
|
// If a terminal expression was set and we must not expand this state, return now.
|
|
|
|
// Terminal state expressions do not consider transient variables.
|
|
|
|
if (!this->terminalStates.empty()) { |
|
|
|
for (auto const& expressionBool : this->terminalStates) { |
|
|
|
if (this->evaluator->asBool(expressionBool.first) == expressionBool.second) { |
|
|
|