Storm
A Modern Probabilistic Model Checker
Loading...
Searching...
No Matches
Smg.h
Go to the documentation of this file.
1#ifndef STORM_MODELS_SPARSE_SMG_H_
2#define STORM_MODELS_SPARSE_SMG_H_
3
8
9namespace storm {
10namespace models {
11namespace sparse {
12
16template<class ValueType, typename RewardModelType = StandardRewardModel<ValueType>>
17class Smg : public NondeterministicModel<ValueType, RewardModelType> {
18 public:
26
27 Smg(Smg<ValueType, RewardModelType> const& other) = default;
29
32
33 std::vector<storm::storage::PlayerIndex> const& getStatePlayerIndications() const;
34 storm::storage::PlayerIndex getPlayerOfState(uint64_t stateIndex) const;
35 storm::storage::PlayerIndex getPlayerIndex(std::string const& playerName) const;
37
38 private:
39 // Assigns the controlling player to each state.
40 // If a state has storm::storage::INVALID_PLAYER_INDEX, it shall be the case that the choice at that state is unique
41 std::vector<storm::storage::PlayerIndex> statePlayerIndications;
42 // A mapping of player names to player indices.
43 std::map<std::string, storm::storage::PlayerIndex> playerNameToIndexMap;
44};
45
46} // namespace sparse
47} // namespace models
48} // namespace storm
49
50#endif /* STORM_MODELS_SPARSE_SMG_H_ */
The base class of sparse nondeterministic models.
This class represents a stochastic multiplayer game.
Definition Smg.h:17
std::vector< storm::storage::PlayerIndex > const & getStatePlayerIndications() const
Definition Smg.cpp:35
storm::storage::PlayerIndex getPlayerOfState(uint64_t stateIndex) const
Definition Smg.cpp:40
storm::storage::BitVector computeStatesOfCoalition(storm::logic::PlayerCoalition const &coalition) const
Definition Smg.cpp:53
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:46
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:18
uint64_t PlayerIndex
Definition PlayerIndex.h:7
LabParser.cpp.
Definition cli.cpp:18