Browse Source

added updateStatesOfCoalition to GameViHelper

tempestpy_adaptions
Lukas Posch 3 years ago
committed by Stefan Pranger
parent
commit
03ec53321e
  1. 5
      src/storm/modelchecker/rpatl/helper/internal/GameViHelper.cpp
  2. 7
      src/storm/modelchecker/rpatl/helper/internal/GameViHelper.h

5
src/storm/modelchecker/rpatl/helper/internal/GameViHelper.cpp

@ -175,6 +175,11 @@ namespace storm {
_transitionMatrix = newTransitionMatrix; _transitionMatrix = newTransitionMatrix;
} }
template <typename ValueType>
void GameViHelper<ValueType>::updateStatesOfCoaltion(storm::storage::BitVector newStatesOfCoaltion) {
_statesOfCoalition = newStatesOfCoaltion;
}
template <typename ValueType> template <typename ValueType>
std::vector<uint64_t> const& GameViHelper<ValueType>::getProducedOptimalChoices() const { std::vector<uint64_t> const& GameViHelper<ValueType>::getProducedOptimalChoices() const {
STORM_LOG_ASSERT(this->isProduceSchedulerSet(), "Trying to get the produced optimal choices although no scheduler was requested."); STORM_LOG_ASSERT(this->isProduceSchedulerSet(), "Trying to get the produced optimal choices although no scheduler was requested.");

7
src/storm/modelchecker/rpatl/helper/internal/GameViHelper.h

@ -44,10 +44,15 @@ namespace storm {
bool isProduceSchedulerSet() const; bool isProduceSchedulerSet() const;
/*! /*!
* Changes the transitionMatrix of the gameViHelper to the given one.
* Changes the transitionMatrix to the given one.
*/ */
void updateTransitionMatrix(storm::storage::SparseMatrix<ValueType> newTransitionMatrix); void updateTransitionMatrix(storm::storage::SparseMatrix<ValueType> newTransitionMatrix);
/*!
* Changes the statesOfCoalition to the given one.
*/
void updateStatesOfCoaltion(storm::storage::BitVector newStatesOfCoaltion);
storm::storage::Scheduler<ValueType> extractScheduler() const; storm::storage::Scheduler<ValueType> extractScheduler() const;
void getChoiceValues(Environment const& env, std::vector<ValueType> const& x, std::vector<ValueType>& choiceValues); void getChoiceValues(Environment const& env, std::vector<ValueType> const& x, std::vector<ValueType>& choiceValues);

Loading…
Cancel
Save