Browse Source

minor bugfix

Former-commit-id: 409e84e8f5
tempestpy_adaptions
dehnert 9 years ago
parent
commit
3bb36997a1
  1. 2
      src/generator/PrismNextStateGenerator.cpp

2
src/generator/PrismNextStateGenerator.cpp

@ -471,7 +471,7 @@ namespace storm {
if (rewardModel.get().hasStateActionRewards()) { if (rewardModel.get().hasStateActionRewards()) {
for (auto const& stateActionReward : rewardModel.get().getStateActionRewards()) { for (auto const& stateActionReward : rewardModel.get().getStateActionRewards()) {
if (stateActionReward.getActionIndex() == choice.getActionIndex() && this->evaluator.asBool(stateActionReward.getStatePredicateExpression())) { if (stateActionReward.getActionIndex() == choice.getActionIndex() && this->evaluator.asBool(stateActionReward.getStatePredicateExpression())) {
stateActionRewardValue += ValueType(this->evaluator.asRational(stateActionReward.getRewardValueExpression())) * choice.getTotalMass();
stateActionRewardValue += ValueType(this->evaluator.asRational(stateActionReward.getRewardValueExpression()));
} }
} }
} }

Loading…
Cancel
Save