Storm
A Modern Probabilistic Model Checker
|
#include <MonotonicityResult.h>
Public Types | |
enum class | Monotonicity { Incr , Decr , Constant , Not , Unknown } |
The results of monotonicity checking for a single Parameter Region. More... | |
Public Member Functions | |
MonotonicityResult () | |
Constructs a new MonotonicityResult object. | |
void | addMonotonicityResult (VariableType var, Monotonicity mon) |
Adds a new variable with a given Monotonicity to the map. | |
void | updateMonotonicityResult (VariableType var, Monotonicity mon, bool force=false) |
Updates the Monotonicity of a variable based on its value so far and a new value. | |
Monotonicity | getMonotonicity (VariableType var) const |
Returns the current monotonicity of a given parameter. | |
bool | isMonotone (VariableType var) const |
std::map< VariableType, Monotonicity > | getMonotonicityResult () const |
Returns the results so far. | |
void | splitBasedOnMonotonicity (std::set< VariableType > const &consideredVariables, std::set< VariableType > &monotoneIncr, std::set< VariableType > &monotoneDecr, std::set< VariableType > ¬Montone) const |
std::pair< std::set< VariableType >, std::set< VariableType > > | splitVariables (std::set< VariableType > const &consideredVariables) const |
std::string | toString () const |
Constructs a string output of all variables and their corresponding Monotonicity. | |
bool | isDone () const |
Checks if the result is complete. | |
bool | isDoneForVar (VariableType) const |
bool | existsMonotonicity () |
Checks if there is any variable that is monotone. | |
bool | isAllMonotonicity () const |
Returns if all Variables are monotone. | |
void | setDone (bool done=true) |
Sets the done bool to the given truth value. | |
void | setSomewhereMonotonicity (bool done=true) |
Sets the somewhereMonotonicity bool to the given truth value. | |
void | setAllMonotonicity (bool done=true) |
Sets the allMonotonicity bool to the given truth value. | |
void | setDoneForVar (VariableType) |
void | setDoneVariables (std::set< VariableType > doneVariables) |
std::shared_ptr< MonotonicityResult< VariableType > > | copy () const |
Constructs a new MonotonicityResult object that is a copy of the current one. | |
Definition at line 14 of file MonotonicityResult.h.
|
strong |
The results of monotonicity checking for a single Parameter Region.
Definition at line 19 of file MonotonicityResult.h.
storm::analysis::MonotonicityResult< VariableType >::MonotonicityResult | ( | ) |
Constructs a new MonotonicityResult object.
Definition at line 12 of file MonotonicityResult.cpp.
void storm::analysis::MonotonicityResult< VariableType >::addMonotonicityResult | ( | VariableType | var, |
Monotonicity | mon | ||
) |
Adds a new variable with a given Monotonicity to the map.
var | The variable that is to be added. |
mon | The Monotonicity of the variable. |
Definition at line 19 of file MonotonicityResult.cpp.
std::shared_ptr< MonotonicityResult< VariableType > > storm::analysis::MonotonicityResult< VariableType >::copy | ( | ) | const |
Constructs a new MonotonicityResult object that is a copy of the current one.
Definition at line 178 of file MonotonicityResult.cpp.
bool storm::analysis::MonotonicityResult< VariableType >::existsMonotonicity | ( | ) |
Checks if there is any variable that is monotone.
Definition at line 154 of file MonotonicityResult.cpp.
MonotonicityResult< VariableType >::Monotonicity storm::analysis::MonotonicityResult< VariableType >::getMonotonicity | ( | VariableType | var | ) | const |
Returns the current monotonicity of a given parameter.
var | The parameter. |
Definition at line 61 of file MonotonicityResult.cpp.
std::map< VariableType, typename MonotonicityResult< VariableType >::Monotonicity > storm::analysis::MonotonicityResult< VariableType >::getMonotonicityResult | ( | ) | const |
Returns the results so far.
Definition at line 70 of file MonotonicityResult.cpp.
bool storm::analysis::MonotonicityResult< VariableType >::isAllMonotonicity | ( | ) | const |
Returns if all Variables are monotone.
Definition at line 173 of file MonotonicityResult.cpp.
bool storm::analysis::MonotonicityResult< VariableType >::isDone | ( | ) | const |
Checks if the result is complete.
Definition at line 139 of file MonotonicityResult.cpp.
bool storm::analysis::MonotonicityResult< VariableType >::isDoneForVar | ( | VariableType | var | ) | const |
Definition at line 144 of file MonotonicityResult.cpp.
bool storm::analysis::MonotonicityResult< VariableType >::isMonotone | ( | VariableType | var | ) | const |
Definition at line 213 of file MonotonicityResult.cpp.
void storm::analysis::MonotonicityResult< VariableType >::setAllMonotonicity | ( | bool | done = true | ) |
Sets the allMonotonicity bool to the given truth value.
Definition at line 168 of file MonotonicityResult.cpp.
void storm::analysis::MonotonicityResult< VariableType >::setDone | ( | bool | done = true | ) |
Sets the done bool to the given truth value.
Definition at line 129 of file MonotonicityResult.cpp.
void storm::analysis::MonotonicityResult< VariableType >::setDoneForVar | ( | VariableType | variable | ) |
Definition at line 134 of file MonotonicityResult.cpp.
void storm::analysis::MonotonicityResult< VariableType >::setDoneVariables | ( | std::set< VariableType > | doneVariables | ) |
Definition at line 189 of file MonotonicityResult.cpp.
void storm::analysis::MonotonicityResult< VariableType >::setSomewhereMonotonicity | ( | bool | done = true | ) |
Sets the somewhereMonotonicity bool to the given truth value.
Definition at line 149 of file MonotonicityResult.cpp.
void storm::analysis::MonotonicityResult< VariableType >::splitBasedOnMonotonicity | ( | std::set< VariableType > const & | consideredVariables, |
std::set< VariableType > & | monotoneIncr, | ||
std::set< VariableType > & | monotoneDecr, | ||
std::set< VariableType > & | notMontone | ||
) | const |
Definition at line 194 of file MonotonicityResult.cpp.
std::pair< std::set< VariableType >, std::set< VariableType > > storm::analysis::MonotonicityResult< VariableType >::splitVariables | ( | std::set< VariableType > const & | consideredVariables | ) | const |
Definition at line 75 of file MonotonicityResult.cpp.
std::string storm::analysis::MonotonicityResult< VariableType >::toString | ( | ) | const |
Constructs a string output of all variables and their corresponding Monotonicity.
Definition at line 95 of file MonotonicityResult.cpp.
void storm::analysis::MonotonicityResult< VariableType >::updateMonotonicityResult | ( | VariableType | var, |
Monotonicity | mon, | ||
bool | force = false |
||
) |
Updates the Monotonicity of a variable based on its value so far and a new value.
var | The variable. |
mon | The new Monotonicity to be considered. |
Definition at line 24 of file MonotonicityResult.cpp.