Storm
A Modern Probabilistic Model Checker
|
#include <Constant.h>
Public Member Functions | |
Constant (storm::expressions::Variable const &variable, storm::expressions::Expression const &expression, std::string const &filename="", uint_fast64_t lineNumber=0) | |
Creates a defined constant. | |
Constant (storm::expressions::Variable const &variable, std::string const &filename="", uint_fast64_t lineNumber=0) | |
Creates an undefined constant. | |
Constant ()=default | |
Constant (Constant const &other)=default | |
Constant & | operator= (Constant const &other)=default |
Constant (Constant &&other)=default | |
Constant & | operator= (Constant &&other)=default |
std::string const & | getName () const |
Retrieves the name of the constant. | |
storm::expressions::Type const & | getType () const |
Retrieves the type of the constant. | |
storm::expressions::Variable const & | getExpressionVariable () const |
Retrieves the expression variable associated with this constant. | |
bool | isDefined () const |
Retrieves whether the constant is defined, i.e., whether there is an expression defining its value. | |
storm::expressions::Expression const & | getExpression () const |
Retrieves the expression that defines the constant. | |
Constant | substitute (std::map< storm::expressions::Variable, storm::expressions::Expression > const &substitution) const |
Substitutes all identifiers in the constant according to the given map. | |
![]() | |
LocatedInformation (std::string const &filename, uint_fast64_t lineNumber) | |
Constructs a located information with the given filename and line number. | |
LocatedInformation ()=default | |
LocatedInformation (LocatedInformation const &other)=default | |
LocatedInformation & | operator= (LocatedInformation const &other)=default |
LocatedInformation (LocatedInformation &&other)=default | |
LocatedInformation & | operator= (LocatedInformation &&other)=default |
std::string const & | getFilename () const |
Retrieves the name of the file in which the information was found. | |
void | setFilename (std::string const &filename) |
Sets the filename of this information. | |
uint_fast64_t | getLineNumber () const |
Retrieves the line number in which the information was found. | |
void | setLineNumber (uint_fast64_t lineNumber) |
Sets the line number of this information. | |
Friends | |
std::ostream & | operator<< (std::ostream &stream, Constant const &constant) |
Definition at line 11 of file Constant.h.
storm::prism::Constant::Constant | ( | storm::expressions::Variable const & | variable, |
storm::expressions::Expression const & | expression, | ||
std::string const & | filename = "" , |
||
uint_fast64_t | lineNumber = 0 |
||
) |
Creates a defined constant.
variable | The expression variable associated with the constant. |
expression | The expression that defines the constant. |
filename | The filename in which the transition reward is defined. |
lineNumber | The line number in which the transition reward is defined. |
Definition at line 7 of file Constant.cpp.
storm::prism::Constant::Constant | ( | storm::expressions::Variable const & | variable, |
std::string const & | filename = "" , |
||
uint_fast64_t | lineNumber = 0 |
||
) |
Creates an undefined constant.
variable | The expression variable associated with the constant. |
filename | The filename in which the transition reward is defined. |
lineNumber | The line number in which the transition reward is defined. |
Definition at line 13 of file Constant.cpp.
|
default |
|
default |
|
default |
storm::expressions::Expression const & storm::prism::Constant::getExpression | ( | ) | const |
Retrieves the expression that defines the constant.
Note that the expression may not be initialized.
Definition at line 34 of file Constant.cpp.
storm::expressions::Variable const & storm::prism::Constant::getExpressionVariable | ( | ) | const |
Retrieves the expression variable associated with this constant.
Definition at line 26 of file Constant.cpp.
std::string const & storm::prism::Constant::getName | ( | ) | const |
Retrieves the name of the constant.
Definition at line 18 of file Constant.cpp.
storm::expressions::Type const & storm::prism::Constant::getType | ( | ) | const |
Retrieves the type of the constant.
Definition at line 22 of file Constant.cpp.
bool storm::prism::Constant::isDefined | ( | ) | const |
Retrieves whether the constant is defined, i.e., whether there is an expression defining its value.
Definition at line 30 of file Constant.cpp.
Constant storm::prism::Constant::substitute | ( | std::map< storm::expressions::Variable, storm::expressions::Expression > const & | substitution | ) | const |
Substitutes all identifiers in the constant according to the given map.
substitution | The substitution to perform. |
Definition at line 38 of file Constant.cpp.
|
friend |
Definition at line 46 of file Constant.cpp.