Storm
A Modern Probabilistic Model Checker
Loading...
Searching...
No Matches
Player.h
Go to the documentation of this file.
1#pragma once
2
3#include <string>
4#include <unordered_set>
5
7
8namespace storm {
9namespace prism {
10
11class Player : public LocatedInformation {
12 public:
22 Player(std::string const& playerName, std::unordered_set<std::string> const& controlledModules, std::unordered_set<std::string> const& controlledActions,
23 std::string const& filename = "", uint_fast32_t lineNumber = 0);
24
25 // Create default implementations of constructors/assignment.
26 Player() = default;
27 Player(Player const& other) = default;
28 Player& operator=(Player const& other) = default;
29 Player(Player&& other) = default;
30 Player& operator=(Player&& other) = default;
31
37 std::string const& getName() const;
38
44 std::unordered_set<std::string> const& getModules() const;
45
51 std::unordered_set<std::string> const& getActions() const;
52
53 friend std::ostream& operator<<(std::ostream& stream, Player const& player);
54
55 private:
56 // The name of the player.
57 std::string playerName;
58
59 // The modules associated with this player.
60 std::unordered_set<std::string> controlledModules;
61
62 // The Actions associated with this player.
63 std::unordered_set<std::string> controlledActions;
64};
65
66} // namespace prism
67} // namespace storm
std::unordered_set< std::string > const & getModules() const
Retrieves all controlled Modules of the player.
Definition Player.cpp:16
friend std::ostream & operator<<(std::ostream &stream, Player const &player)
Definition Player.cpp:24
Player(Player &&other)=default
Player & operator=(Player &&other)=default
Player & operator=(Player const &other)=default
std::unordered_set< std::string > const & getActions() const
Retrieves all controlled Actions of the player.
Definition Player.cpp:20
std::string const & getName() const
Retrieves the name of the player.
Definition Player.cpp:12
Player(Player const &other)=default
LabParser.cpp.
Definition cli.cpp:18