Storm
A Modern Probabilistic Model Checker
Loading...
Searching...
No Matches
Assignment.h
Go to the documentation of this file.
1#ifndef STORM_STORAGE_PRISM_ASSIGNMENT_H_
2#define STORM_STORAGE_PRISM_ASSIGNMENT_H_
3
4#include <map>
5
10
11namespace storm {
12namespace prism {
14 public:
23 Assignment(storm::expressions::Variable const& variable, storm::expressions::Expression const& expression, std::string const& filename = "",
24 uint_fast64_t lineNumber = 0);
25
26 // Create default implementations of constructors/assignment.
27 Assignment() = default;
28 Assignment(Assignment const& other) = default;
29 Assignment& operator=(Assignment const& other) = default;
30 Assignment(Assignment&& other) = default;
31 Assignment& operator=(Assignment&& other) = default;
32
38 std::string const& getVariableName() const;
39
46
53
60 Assignment substitute(std::map<storm::expressions::Variable, storm::expressions::Expression> const& substitution) const;
61
63
69 bool isIdentity() const;
70
71 friend std::ostream& operator<<(std::ostream& stream, Assignment const& assignment);
72
73 private:
74 // The variable written in this assignment.
76
77 // The expression that is assigned to the variable.
79};
80} // namespace prism
81} // namespace storm
82
83#endif /* STORM_STORAGE_PRISM_ASSIGNMENT_H_ */
storm::expressions::Variable const & getVariable() const
Retrieves the variable that is written to by this assignment.
Assignment(Assignment &&other)=default
std::string const & getVariableName() const
Retrieves the name of the variable that this assignment targets.
Assignment & operator=(Assignment &&other)=default
Assignment & operator=(Assignment const &other)=default
storm::expressions::Expression const & getExpression() const
Retrieves the expression that is assigned to the variable.
bool isIdentity() const
Checks whether the assignment is an identity (lhs equals rhs)
Assignment substitute(std::map< storm::expressions::Variable, storm::expressions::Expression > const &substitution) const
Substitutes all variables in the assignment according to the given map.
Assignment(Assignment const &other)=default
friend std::ostream & operator<<(std::ostream &stream, Assignment const &assignment)
Assignment substituteNonStandardPredicates() const
LabParser.cpp.
Definition cli.cpp:18