Storm
A Modern Probabilistic Model Checker
|
A simple implementation of the valuation interface. More...
#include <SimpleValuation.h>
Public Member Functions | |
SimpleValuation () | |
Creates an empty simple valuation that is associated to no manager and has no variables. | |
SimpleValuation (std::shared_ptr< storm::expressions::ExpressionManager const > const &manager) | |
Creates a new valuation over the non-auxiliary variables of the given manager. | |
SimpleValuation (SimpleValuation const &other) | |
SimpleValuation & | operator= (SimpleValuation const &other) |
SimpleValuation (SimpleValuation &&other) | |
SimpleValuation & | operator= (SimpleValuation &&other) |
bool | operator== (SimpleValuation const &other) const |
Checks whether the two valuations are semantically equivalent. | |
virtual bool | getBooleanValue (Variable const &booleanVariable) const override |
Retrieves the value of the given boolean variable. | |
virtual void | setBooleanValue (Variable const &booleanVariable, bool value) override |
Sets the value of the given boolean variable to the provided value. | |
virtual int_fast64_t | getIntegerValue (Variable const &integerVariable) const override |
Retrieves the value of the given integer variable. | |
virtual int_fast64_t | getBitVectorValue (Variable const &bitVectorVariable) const override |
Retrieves the value of the given bit vector variable. | |
virtual void | setIntegerValue (Variable const &integerVariable, int_fast64_t value) override |
Sets the value of the given integer variable to the provided value. | |
virtual void | setBitVectorValue (Variable const &bitVectorVariable, int_fast64_t value) override |
Sets the value of the given bit vector variable to the provided value. | |
virtual double | getRationalValue (Variable const &rationalVariable) const override |
Retrieves the value of the given rational variable. | |
virtual void | setRationalValue (Variable const &rationalVariable, double value) override |
Sets the value of the given boolean variable to the provided value. | |
virtual std::string | toPrettyString (std::set< storm::expressions::Variable > const &selectedVariables) const |
Returns a string representation of the valuation of the selected variables. | |
virtual std::string | toString (bool pretty=true) const |
storm::json< storm::RationalNumber > | toJson () const |
![]() | |
Valuation (std::shared_ptr< ExpressionManager const > const &manager) | |
Creates a valuation of all non-auxiliary variables managed by the given manager. | |
virtual | ~Valuation () |
Declare virtual destructor, so we can properly delete instances later. | |
ExpressionManager const & | getManager () const |
Retrieves the manager responsible for the variables of this valuation. | |
Friends | |
class | SimpleValuationPointerHash |
class | SimpleValuationPointerLess |
std::ostream & | operator<< (std::ostream &out, SimpleValuation const &valuation) |
Additional Inherited Members | |
![]() | |
std::shared_ptr< ExpressionManager const > const & | getManagerAsSharedPtr () const |
Retrieves the manager responsible for the variables of this valuation. | |
void | setManager (std::shared_ptr< ExpressionManager const > const &manager) |
Sets the manager responsible for the variables in this valuation. | |
A simple implementation of the valuation interface.
Definition at line 18 of file SimpleValuation.h.
storm::expressions::SimpleValuation::SimpleValuation | ( | ) |
Creates an empty simple valuation that is associated to no manager and has no variables.
Definition at line 16 of file SimpleValuation.cpp.
storm::expressions::SimpleValuation::SimpleValuation | ( | std::shared_ptr< storm::expressions::ExpressionManager const > const & | manager | ) |
Creates a new valuation over the non-auxiliary variables of the given manager.
manager | The manager responsible for the variables of this valuation. |
Definition at line 20 of file SimpleValuation.cpp.
storm::expressions::SimpleValuation::SimpleValuation | ( | SimpleValuation const & | other | ) |
Definition at line 28 of file SimpleValuation.cpp.
storm::expressions::SimpleValuation::SimpleValuation | ( | SimpleValuation && | other | ) |
Definition at line 46 of file SimpleValuation.cpp.
|
overridevirtual |
Retrieves the value of the given bit vector variable.
bitVectorVariable | The bit vector variable whose value to retrieve. |
Implements storm::expressions::Valuation.
Definition at line 77 of file SimpleValuation.cpp.
|
overridevirtual |
Retrieves the value of the given boolean variable.
booleanVariable | The boolean variable whose value to retrieve. |
Implements storm::expressions::Valuation.
Definition at line 69 of file SimpleValuation.cpp.
|
overridevirtual |
Retrieves the value of the given integer variable.
integerVariable | The integer variable whose value to retrieve. |
Implements storm::expressions::Valuation.
Definition at line 73 of file SimpleValuation.cpp.
|
overridevirtual |
Retrieves the value of the given rational variable.
rationalVariable | The rational variable whose value to retrieve. |
Implements storm::expressions::Valuation.
Definition at line 81 of file SimpleValuation.cpp.
SimpleValuation & storm::expressions::SimpleValuation::operator= | ( | SimpleValuation && | other | ) |
Definition at line 54 of file SimpleValuation.cpp.
SimpleValuation & storm::expressions::SimpleValuation::operator= | ( | SimpleValuation const & | other | ) |
Definition at line 36 of file SimpleValuation.cpp.
bool storm::expressions::SimpleValuation::operator== | ( | SimpleValuation const & | other | ) | const |
Checks whether the two valuations are semantically equivalent.
other | The valuation with which to compare. |
Definition at line 64 of file SimpleValuation.cpp.
|
overridevirtual |
Sets the value of the given bit vector variable to the provided value.
bitVectorVariable | The variable whose value to set. |
value | The new value of the variable. |
Implements storm::expressions::Valuation.
Definition at line 93 of file SimpleValuation.cpp.
|
overridevirtual |
Sets the value of the given boolean variable to the provided value.
booleanVariable | The variable whose value to set. |
value | The new value of the variable. |
Implements storm::expressions::Valuation.
Definition at line 85 of file SimpleValuation.cpp.
|
overridevirtual |
Sets the value of the given integer variable to the provided value.
integerVariable | The variable whose value to set. |
value | The new value of the variable. |
Implements storm::expressions::Valuation.
Definition at line 89 of file SimpleValuation.cpp.
|
overridevirtual |
Sets the value of the given boolean variable to the provided value.
integerVariable | The variable whose value to set. |
value | The new value of the variable. |
Implements storm::expressions::Valuation.
Definition at line 97 of file SimpleValuation.cpp.
storm::json< storm::RationalNumber > storm::expressions::SimpleValuation::toJson | ( | ) | const |
Definition at line 154 of file SimpleValuation.cpp.
|
virtual |
Returns a string representation of the valuation of the selected variables.
selectedVariables | The variables to select. |
Definition at line 101 of file SimpleValuation.cpp.
|
virtual |
Definition at line 120 of file SimpleValuation.cpp.
|
friend |
Definition at line 170 of file SimpleValuation.cpp.
|
friend |
Definition at line 20 of file SimpleValuation.h.
|
friend |
Definition at line 21 of file SimpleValuation.h.