|
Storm 1.14.0.1
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. | |
| bool | contains (Variable const &variable) const |
| Checks whether this valuation stores a value for the given variable. | |
| 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 |
| Public Member Functions inherited from storm::expressions::Valuation | |
| 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 | |
| Protected Member Functions inherited from storm::expressions::Valuation | |
| 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 17 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.
| bool storm::expressions::SimpleValuation::contains | ( | Variable const & | variable | ) | const |
Checks whether this valuation stores a value for the given variable.
The contained variables are those the manager knew at the time this valuation was created. Variables that are declared in the manager afterwards are not contained, as valuations are invalidated by such declarations. Note that array and string variables are never contained, as they are not stored by valuations of this type.
| variable | The variable to check. |
Definition at line 69 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 100 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 90 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 95 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 105 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 120 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 110 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 115 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 125 of file SimpleValuation.cpp.
| storm::json< storm::RationalNumber > storm::expressions::SimpleValuation::toJson | ( | ) | const |
Definition at line 186 of file SimpleValuation.cpp.
|
virtual |
Returns a string representation of the valuation of the selected variables.
| selectedVariables | The variables to select. |
Definition at line 130 of file SimpleValuation.cpp.
|
virtual |
Definition at line 149 of file SimpleValuation.cpp.
|
friend |
Definition at line 206 of file SimpleValuation.cpp.
|
friend |
Definition at line 19 of file SimpleValuation.h.
|
friend |
Definition at line 20 of file SimpleValuation.h.