1#ifndef STORM_STORAGE_PRISM_VARIABLE_H_
2#define STORM_STORAGE_PRISM_VARIABLE_H_
27 std::string
const&
getName()
const;
89 std::string
const& filename =
"", uint_fast64_t lineNumber = 0);
103 std::map<storm::expressions::Variable, storm::expressions::Expression>
const& renaming,
bool observable =
false, std::string
const& filename =
"",
104 uint_fast64_t lineNumber = 0);
This class is responsible for managing a set of typed variables and all expressions using these varia...
storm::expressions::Expression const & getInitialValueExpression() const
Retrieves the expression defining the initial value of the variable.
storm::expressions::Variable const & getExpressionVariable() const
Retrieves the expression variable associated with this variable.
storm::expressions::Expression getExpression() const
Retrieves the expression associated with this variable.
virtual ~Variable()=default
void setInitialValueExpression(storm::expressions::Expression const &initialValueExpression)
Sets the expression defining the initial value of the variable.
std::string const & getName() const
Retrieves the name of the variable.
bool hasInitialValue() const
Retrieves whether the variable has an initial value.
bool isObservable() const
Retrieves whether the variable is observable.
Variable(Variable &&otherVariable)=default
Variable(Variable const &otherVariable)=default
Variable & operator=(Variable const &otherVariable)=default
Variable & operator=(Variable &&otherVariable)=default
virtual void createMissingInitialValue()=0
Equips the variable with an initial value based on its type if not initial value is present.