Storm
A Modern Probabilistic Model Checker
|
#include <Dd.h>
Public Member Functions | |
Dd ()=default | |
Dd (Dd< LibraryType > const &other)=default | |
Dd & | operator= (Dd< LibraryType > const &other)=default |
Dd (Dd< LibraryType > &&other)=default | |
Dd & | operator= (Dd< LibraryType > &&other)=default |
virtual | ~Dd ()=default |
virtual Bdd< LibraryType > | getSupport () const =0 |
Retrieves the support of the current DD. | |
virtual uint_fast64_t | getNonZeroCount () const =0 |
Retrieves the number of encodings that are mapped to a non-zero value. | |
virtual uint_fast64_t | getLeafCount () const =0 |
Retrieves the number of leaves of the DD. | |
virtual uint_fast64_t | getNodeCount () const =0 |
Retrieves the number of nodes necessary to represent the DD. | |
virtual uint_fast64_t | getIndex () const =0 |
Retrieves the index of the topmost variable in the DD. | |
virtual uint_fast64_t | getLevel () const =0 |
Retrieves the level of the topmost variable in the DD. | |
bool | containsMetaVariable (storm::expressions::Variable const &metaVariable) const |
Retrieves whether the given meta variable is contained in the DD. | |
bool | containsMetaVariables (std::set< storm::expressions::Variable > const &metaVariables) const |
Retrieves whether the given meta variables are all contained in the DD. | |
std::set< storm::expressions::Variable > const & | getContainedMetaVariables () const |
Retrieves the set of all meta variables contained in the DD. | |
virtual void | exportToDot (std::string const &filename, bool showVariablesIfPossible=true) const =0 |
Exports the DD to the given file in the dot format. | |
virtual void | exportToText (std::string const &filename) const =0 |
Exports the DD to the given file in the dot format. | |
DdManager< LibraryType > & | getDdManager () const |
Retrieves the manager that is responsible for this DD. | |
std::set< storm::expressions::Variable > & | getContainedMetaVariables () |
Retrieves the set of all meta variables contained in the DD. | |
void | addMetaVariables (std::set< storm::expressions::Variable > const &metaVariables) |
Adds the given set of meta variables to the DD. | |
void | addMetaVariable (storm::expressions::Variable const &metaVariable) |
Adds the given meta variable to the set of meta variables that are contained in this DD. | |
void | removeMetaVariable (storm::expressions::Variable const &metaVariable) |
Removes the given meta variable to the set of meta variables that are contained in this DD. | |
void | removeMetaVariables (std::set< storm::expressions::Variable > const &metaVariables) |
Removes the given set of meta variables from the DD. | |
Protected Member Functions | |
std::vector< uint_fast64_t > | getSortedVariableIndices () const |
Retrieves the (sorted) list of the variable indices of DD variables contained in this DD. | |
Dd (DdManager< LibraryType > const &ddManager, std::set< storm::expressions::Variable > const &containedMetaVariables=std::set< storm::expressions::Variable >()) | |
Creates a DD with the given manager and meta variables. | |
Static Protected Member Functions | |
static std::set< storm::expressions::Variable > | joinMetaVariables (storm::dd::Dd< LibraryType > const &first, storm::dd::Dd< LibraryType > const &second) |
Retrieves the set of meta variables contained in both DDs. | |
static std::set< storm::expressions::Variable > | subtractMetaVariables (storm::dd::Dd< LibraryType > const &first, storm::dd::Dd< LibraryType > const &second) |
Retrieves the set of meta variables that are contained in the first but not the second DD. | |
Friends | |
class | DdManager< LibraryType > |
|
default |
|
default |
|
default |
|
virtualdefault |
|
protected |
void Dd< LibraryType >::addMetaVariable | ( | storm::expressions::Variable const & | metaVariable | ) |
void Dd< LibraryType >::addMetaVariables | ( | std::set< storm::expressions::Variable > const & | metaVariables | ) |
bool Dd< LibraryType >::containsMetaVariable | ( | storm::expressions::Variable const & | metaVariable | ) | const |
bool Dd< LibraryType >::containsMetaVariables | ( | std::set< storm::expressions::Variable > const & | metaVariables | ) | const |
|
pure virtual |
Exports the DD to the given file in the dot format.
filename | The name of the file to which the DD is to be exported. |
Implemented in storm::dd::Add< LibraryType, ValueType >, storm::dd::Add< DdType, double >, storm::dd::Add< DdType, ValueType >, storm::dd::Add< Type, double >, storm::dd::Add< Type, ValueType >, storm::dd::Bdd< LibraryType >, storm::dd::Bdd< DdType >, storm::dd::Bdd< storm::dd::DdType::CUDD >, storm::dd::Bdd< storm::dd::DdType::Sylvan >, and storm::dd::Bdd< Type >.
|
pure virtual |
Exports the DD to the given file in the dot format.
filename | The name of the file to which the DD is to be exported. |
Implemented in storm::dd::Add< LibraryType, ValueType >, storm::dd::Add< DdType, double >, storm::dd::Add< DdType, ValueType >, storm::dd::Add< Type, double >, storm::dd::Add< Type, ValueType >, storm::dd::Bdd< LibraryType >, storm::dd::Bdd< DdType >, storm::dd::Bdd< storm::dd::DdType::CUDD >, storm::dd::Bdd< storm::dd::DdType::Sylvan >, and storm::dd::Bdd< Type >.
std::set< storm::expressions::Variable > & Dd< LibraryType >::getContainedMetaVariables | ( | ) |
std::set< storm::expressions::Variable > const & Dd< LibraryType >::getContainedMetaVariables | ( | ) | const |
|
pure virtual |
Retrieves the index of the topmost variable in the DD.
Implemented in storm::dd::Add< LibraryType, ValueType >, storm::dd::Add< DdType, double >, storm::dd::Add< DdType, ValueType >, storm::dd::Add< Type, double >, storm::dd::Add< Type, ValueType >, storm::dd::Bdd< LibraryType >, storm::dd::Bdd< DdType >, storm::dd::Bdd< storm::dd::DdType::CUDD >, storm::dd::Bdd< storm::dd::DdType::Sylvan >, and storm::dd::Bdd< Type >.
|
pure virtual |
Retrieves the number of leaves of the DD.
Implemented in storm::dd::Add< LibraryType, ValueType >, storm::dd::Add< DdType, double >, storm::dd::Add< DdType, ValueType >, storm::dd::Add< Type, double >, storm::dd::Add< Type, ValueType >, storm::dd::Bdd< LibraryType >, storm::dd::Bdd< DdType >, storm::dd::Bdd< storm::dd::DdType::CUDD >, storm::dd::Bdd< storm::dd::DdType::Sylvan >, and storm::dd::Bdd< Type >.
|
pure virtual |
Retrieves the level of the topmost variable in the DD.
Implemented in storm::dd::Add< LibraryType, ValueType >, storm::dd::Add< DdType, double >, storm::dd::Add< DdType, ValueType >, storm::dd::Add< Type, double >, storm::dd::Add< Type, ValueType >, storm::dd::Bdd< LibraryType >, storm::dd::Bdd< DdType >, storm::dd::Bdd< storm::dd::DdType::CUDD >, storm::dd::Bdd< storm::dd::DdType::Sylvan >, and storm::dd::Bdd< Type >.
|
pure virtual |
Retrieves the number of nodes necessary to represent the DD.
Implemented in storm::dd::Add< LibraryType, ValueType >, storm::dd::Add< DdType, double >, storm::dd::Add< DdType, ValueType >, storm::dd::Add< Type, double >, storm::dd::Add< Type, ValueType >, storm::dd::Bdd< LibraryType >, storm::dd::Bdd< DdType >, storm::dd::Bdd< storm::dd::DdType::CUDD >, storm::dd::Bdd< storm::dd::DdType::Sylvan >, and storm::dd::Bdd< Type >.
|
pure virtual |
Retrieves the number of encodings that are mapped to a non-zero value.
Implemented in storm::dd::Add< LibraryType, ValueType >, storm::dd::Add< DdType, double >, storm::dd::Add< DdType, ValueType >, storm::dd::Add< Type, double >, storm::dd::Add< Type, ValueType >, storm::dd::Bdd< LibraryType >, storm::dd::Bdd< DdType >, storm::dd::Bdd< storm::dd::DdType::CUDD >, storm::dd::Bdd< storm::dd::DdType::Sylvan >, and storm::dd::Bdd< Type >.
|
pure virtual |
Retrieves the support of the current DD.
Implemented in storm::dd::Add< LibraryType, ValueType >, storm::dd::Add< DdType, double >, storm::dd::Add< DdType, ValueType >, storm::dd::Add< Type, double >, storm::dd::Add< Type, ValueType >, storm::dd::Bdd< LibraryType >, storm::dd::Bdd< DdType >, storm::dd::Bdd< storm::dd::DdType::CUDD >, storm::dd::Bdd< storm::dd::DdType::Sylvan >, and storm::dd::Bdd< Type >.
|
staticprotected |
|
default |
|
default |
void Dd< LibraryType >::removeMetaVariable | ( | storm::expressions::Variable const & | metaVariable | ) |
void Dd< LibraryType >::removeMetaVariables | ( | std::set< storm::expressions::Variable > const & | metaVariables | ) |
|
staticprotected |