Storm
A Modern Probabilistic Model Checker
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
ClockVariable.cpp
Go to the documentation of this file.
5
6namespace storm {
7namespace prism {
8ClockVariable::ClockVariable(storm::expressions::Variable const& variable, bool observable, std::string const& filename, uint_fast64_t lineNumber)
9 : Variable(variable, variable.getManager().rational(storm::utility::zero<storm::RationalNumber>()), observable, filename, lineNumber) {
10 // Nothing to do here.
11}
12
14 if (!this->hasInitialValue()) {
15 this->setInitialValueExpression(this->getExpressionVariable().getManager().rational(storm::utility::zero<storm::RationalNumber>()));
16 }
17}
18
19std::ostream& operator<<(std::ostream& stream, ClockVariable const& variable) {
20 stream << variable.getName() << ": clock" << ";";
21 return stream;
22}
23
24} // namespace prism
25} // namespace storm
virtual void createMissingInitialValue() override
Sets a missing initial value (note that for clock variables, this is always zero)
storm::expressions::Variable const & getExpressionVariable() const
Retrieves the expression variable associated with this variable.
Definition Variable.cpp:40
void setInitialValueExpression(storm::expressions::Expression const &initialValueExpression)
Sets the expression defining the initial value of the variable.
Definition Variable.cpp:36
std::string const & getName() const
Retrieves the name of the variable.
Definition Variable.cpp:24
bool hasInitialValue() const
Retrieves whether the variable has an initial value.
Definition Variable.cpp:28
std::ostream & operator<<(std::ostream &stream, Assignment const &assignment)
LabParser.cpp.
Definition cli.cpp:18