#include "src/models/sparse/StochasticTwoPlayerGame.h" #include "src/models/sparse/StandardRewardModel.h" #include "src/adapters/CarlAdapter.h" namespace storm { namespace models { namespace sparse { template StochasticTwoPlayerGame::StochasticTwoPlayerGame(storm::storage::SparseMatrix const& player1Matrix, storm::storage::SparseMatrix const& player2Matrix, storm::models::sparse::StateLabeling const& stateLabeling, std::unordered_map const& rewardModels, boost::optional> const& optionalPlayer1ChoiceLabeling, boost::optional> const& optionalPlayer2ChoiceLabeling) : NondeterministicModel(storm::models::ModelType::S2pg, player2Matrix, stateLabeling, rewardModels, optionalPlayer2ChoiceLabeling), player1Matrix(player1Matrix), player1ChoiceLabeling(optionalPlayer1ChoiceLabeling) { // Intentionally left empty. } template StochasticTwoPlayerGame::StochasticTwoPlayerGame(storm::storage::SparseMatrix&& player1Matrix, storm::storage::SparseMatrix&& player2Matrix, storm::models::sparse::StateLabeling&& stateLabeling, std::unordered_map&& rewardModels, boost::optional>&& optionalPlayer1ChoiceLabeling, boost::optional>&& optionalPlayer2ChoiceLabeling) : NondeterministicModel(storm::models::ModelType::S2pg, std::move(player2Matrix), std::move(stateLabeling), std::move(rewardModels), std::move(optionalPlayer2ChoiceLabeling)), player1Matrix(std::move(player1Matrix)), player1ChoiceLabeling(std::move(optionalPlayer1ChoiceLabeling)) { // Intentionally left empty. } template storm::storage::SparseMatrix const& StochasticTwoPlayerGame::getPlayer1Matrix() const { return player1Matrix; } template storm::storage::SparseMatrix const& StochasticTwoPlayerGame::getPlayer2Matrix() const { return this->getTransitionMatrix(); } template bool StochasticTwoPlayerGame::hasPlayer1ChoiceLabeling() const { return static_cast(player1ChoiceLabeling); } template std::vector const& StochasticTwoPlayerGame::getPlayer1ChoiceLabeling() const { return player1ChoiceLabeling.get(); } template bool StochasticTwoPlayerGame::hasPlayer2ChoiceLabeling() const { return this->hasChoiceLabeling(); } template std::vector const& StochasticTwoPlayerGame::getPlayer2ChoiceLabeling() const { return this->getChoiceLabeling(); } template class StochasticTwoPlayerGame; // template class StochasticTwoPlayerGame; #ifdef STORM_HAVE_CARL template class StochasticTwoPlayerGame; #endif } // namespace sparse } // namespace models } // namespace storm