Storm
A Modern Probabilistic Model Checker
Loading...
Searching...
No Matches
StochasticTwoPlayerGame.cpp
Go to the documentation of this file.
2
4
6
7namespace storm {
8namespace models {
9namespace sparse {
10
11template<typename ValueType, typename RewardModelType>
14 storm::models::sparse::StateLabeling const& stateLabeling, std::unordered_map<std::string, RewardModelType> const& rewardModels)
16 storm::storage::sparse::ModelComponents<ValueType, RewardModelType>(player2Matrix, stateLabeling, rewardModels, false, boost::none, player1Matrix)) {
17 // Intentionally left empty.
18}
19
20template<typename ValueType, typename RewardModelType>
24 std::unordered_map<std::string, RewardModelType>&& rewardModels)
26 std::move(player2Matrix), std::move(stateLabeling), std::move(rewardModels), false, boost::none, std::move(player1Matrix))) {
27 // Intentionally left empty.
28}
29
30template<typename ValueType, typename RewardModelType>
36
37template<typename ValueType, typename RewardModelType>
39 : NondeterministicModel<ValueType, RewardModelType>(ModelType::S2pg, std::move(components)), player1Matrix(std::move(components.player1Matrix.get())) {
40 // Intentionally left empty
41}
42
43template<typename ValueType, typename RewardModelType>
47
48template<typename ValueType, typename RewardModelType>
52
53template<typename ValueType, typename RewardModelType>
55 return this->hasChoiceLabeling();
56}
57
58template<typename ValueType, typename RewardModelType>
62
64
65#ifdef STORM_HAVE_CARL
70
71#endif
72
73} // namespace sparse
74} // namespace models
75} // namespace storm
This class manages the labeling of the choice space with a number of (atomic) labels.
CRewardModelType RewardModelType
Definition Model.h:36
The base class of sparse nondeterministic models.
This class manages the labeling of the state space with a number of (atomic) labels.
This class represents a (discrete-time) stochastic two-player game.
bool hasPlayer2ChoiceLabeling() const
Retrieves whether the game has labels attached to player 2 states.
storm::storage::SparseMatrix< storm::storage::sparse::state_type > const & getPlayer1Matrix() const
Retrieves the matrix representing the choices in player 1 states.
storm::storage::SparseMatrix< ValueType > const & getPlayer2Matrix() const
Retrieves the matrix representing the choices in player 2 states and the associated probability distr...
StochasticTwoPlayerGame(storm::storage::SparseMatrix< storm::storage::sparse::state_type > const &player1Matrix, storm::storage::SparseMatrix< ValueType > const &player2Matrix, storm::models::sparse::StateLabeling const &stateLabeling, std::unordered_map< std::string, RewardModelType > const &rewardModels=std::unordered_map< std::string, RewardModelType >())
Constructs a model from the given data.
storm::models::sparse::ChoiceLabeling const & getPlayer2ChoiceLabeling() const
Retrieves the labels attached to the choices of player 2 states.
A class that holds a possibly non-square matrix in the compressed row storage format.
LabParser.cpp.
Definition cli.cpp:18