Storm 1.11.1.1
A Modern Probabilistic Model Checker
Loading...
Searching...
No Matches
Smg.h
Go to the documentation of this file.
1#pragma once
2
7
8namespace storm {
9namespace models {
10namespace sparse {
11
15template<class ValueType, typename RewardModelType = StandardRewardModel<ValueType>>
16class Smg : public NondeterministicModel<ValueType, RewardModelType> {
17 public:
25
26 Smg(Smg<ValueType, RewardModelType> const& other) = default;
28
31
32 std::vector<storm::storage::PlayerIndex> const& getStatePlayerIndications() const;
33 storm::storage::PlayerIndex getPlayerOfState(uint64_t stateIndex) const;
34 storm::storage::PlayerIndex getPlayerIndex(std::string const& playerName) const;
36
37 private:
38 // Assigns the controlling player to each state.
39 // If a state has storm::storage::INVALID_PLAYER_INDEX, it shall be the case that the choice at that state is unique
40 std::vector<storm::storage::PlayerIndex> statePlayerIndications;
41 // A mapping of player names to player indices.
42 std::map<std::string, storm::storage::PlayerIndex> playerNameToIndexMap;
43};
44
45} // namespace sparse
46} // namespace models
47} // namespace storm
The base class of sparse nondeterministic models.
This class represents a stochastic multiplayer game.
Definition Smg.h:16
std::vector< storm::storage::PlayerIndex > const & getStatePlayerIndications() const
Definition Smg.cpp:32
storm::storage::PlayerIndex getPlayerOfState(uint64_t stateIndex) const
Definition Smg.cpp:37
storm::storage::BitVector computeStatesOfCoalition(storm::logic::PlayerCoalition const &coalition) const
Definition Smg.cpp:50
Smg & operator=(Smg< ValueType, RewardModelType > &&other)=default
Smg(Smg< ValueType, RewardModelType > const &other)=default
storm::storage::PlayerIndex getPlayerIndex(std::string const &playerName) const
Definition Smg.cpp:43
Smg(Smg< ValueType, RewardModelType > &&other)=default
Smg & operator=(Smg< ValueType, RewardModelType > const &other)=default
A bit vector that is internally represented as a vector of 64-bit values.
Definition BitVector.h:16
uint64_t PlayerIndex
Definition PlayerIndex.h:7