Storm 1.11.1.1
A Modern Probabilistic Model Checker
Loading...
Searching...
No Matches
StochasticTwoPlayerGame.h
Go to the documentation of this file.
1#pragma once
2
4
5namespace storm {
6namespace models {
7namespace sparse {
8
12template<class ValueType, typename RewardModelType = StandardRewardModel<ValueType>>
13class StochasticTwoPlayerGame : public NondeterministicModel<ValueType, RewardModelType> {
14 public:
25 std::unordered_map<std::string, RewardModelType> const& rewardModels = std::unordered_map<std::string, RewardModelType>()),
26
37 std::unordered_map<std::string, RewardModelType>&& rewardModels = std::unordered_map<std::string, RewardModelType>()),
38
46
49
52
59
67
73 bool hasPlayer2ChoiceLabeling() const;
74
81
82 private:
83 // A matrix that stores the player 1 choices. This matrix contains a row group for each player 1 node. Every
84 // row group contains a row for each choice in that player 1 node. Each such row contains exactly one
85 // (non-zero) entry at a column that indicates the player 2 node this choice leads to (which is essentially
86 // the index of a row group in the matrix for player 2).
88
89 // The matrix for player 2 are stored in the superclass.
90};
91
92} // namespace sparse
93} // namespace models
94} // namespace storm
This class manages the labeling of the choice space with a number of (atomic) labels.
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.
StochasticTwoPlayerGame & operator=(StochasticTwoPlayerGame &&other)=default
StochasticTwoPlayerGame & operator=(StochasticTwoPlayerGame const &other)=default
StochasticTwoPlayerGame(StochasticTwoPlayerGame &&other)=default
storm::storage::SparseMatrix< ValueType > const & getPlayer2Matrix() const
Retrieves the matrix representing the choices in player 2 states and the associated probability distr...
StochasticTwoPlayerGame(StochasticTwoPlayerGame const &other)=default
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.