Storm 1.14.0.1
A Modern Probabilistic Model Checker
Loading...
Searching...
No Matches
BooleanVariable.h
Go to the documentation of this file.
1#pragma once
2
3#include <map>
4
6
7namespace storm {
8namespace prism {
9class BooleanVariable : public Variable {
10 public:
11 // Create default implementations of constructors/assignment.
12 BooleanVariable() = default;
13 BooleanVariable(BooleanVariable const& other) = default;
14 BooleanVariable& operator=(BooleanVariable const& other) = default;
15 BooleanVariable(BooleanVariable&& other) = default;
17
26 BooleanVariable(storm::expressions::Variable const& variable, storm::expressions::Expression const& initialValueExpression, bool observable,
27 std::string const& filename = "", uint_fast64_t lineNumber = 0);
28
35 BooleanVariable substitute(std::map<storm::expressions::Variable, storm::expressions::Expression> const& substitution) const;
37
38 virtual void createMissingInitialValue() override;
39
40 friend std::ostream& operator<<(std::ostream& stream, BooleanVariable const& variable);
41};
42
43} // namespace prism
44} // namespace storm
virtual void createMissingInitialValue() override
Equips the variable with an initial value based on its type if not initial value is present.
BooleanVariable substitute(std::map< storm::expressions::Variable, storm::expressions::Expression > const &substitution) const
Substitutes all identifiers in the boolean variable according to the given map.
BooleanVariable(BooleanVariable &&other)=default
BooleanVariable & operator=(BooleanVariable const &other)=default
BooleanVariable substituteNonStandardPredicates() const
BooleanVariable(BooleanVariable const &other)=default
friend std::ostream & operator<<(std::ostream &stream, BooleanVariable const &variable)
BooleanVariable & operator=(BooleanVariable &&other)=default
Variable(Variable const &otherVariable)=default