13template<storm::dd::DdType Type,
typename ValueType>
18 std::set<storm::expressions::Variable>
const& columnVariables,
19 std::vector<std::pair<storm::expressions::Variable, storm::expressions::Variable>>
const& rowColumnMetaVariablePairs,
20 std::set<storm::expressions::Variable>
const& nondeterminismVariables, std::map<std::string, storm::expressions::Expression> labelToExpressionMap,
21 std::unordered_map<std::string, RewardModelType>
const& rewardModels)
23 columnVariables, rowColumnMetaVariablePairs, labelToExpressionMap, rewardModels),
24 nondeterminismVariables(nondeterminismVariables) {
28template<storm::dd::DdType Type,
typename ValueType>
32 std::set<storm::expressions::Variable>
const& rowVariables, std::set<storm::expressions::Variable>
const& columnVariables,
33 std::vector<std::pair<storm::expressions::Variable, storm::expressions::Variable>>
const& rowColumnMetaVariablePairs,
34 std::set<storm::expressions::Variable>
const& nondeterminismVariables, std::map<std::string,
storm::dd::Bdd<Type>> labelToBddMap,
35 std::unordered_map<std::string, RewardModelType>
const& rewardModels)
37 rowColumnMetaVariablePairs, labelToBddMap, rewardModels),
38 nondeterminismVariables(nondeterminismVariables) {
42template<storm::dd::DdType Type,
typename ValueType>
44 std::set<storm::expressions::Variable> rowAndNondeterminismVariables;
46 this->
getRowVariables().end(), std::inserter(rowAndNondeterminismVariables, rowAndNondeterminismVariables.begin()));
51 .template toAdd<uint_fast64_t>()
52 .sumAbstract(rowAndNondeterminismVariables);
56template<storm::dd::DdType Type,
typename ValueType>
58 return nondeterminismVariables;
61template<storm::dd::DdType Type,
typename ValueType>
66template<storm::dd::DdType Type,
typename ValueType>
72template<storm::dd::DdType Type,
typename ValueType>
79template<storm::dd::DdType Type,
typename ValueType>
81 uint_fast64_t nondeterminismVariableCount = 0;
83 nondeterminismVariableCount += this->
getManager().getMetaVariable(metaVariable).getNumberOfDdVariables();
86 out <<
", nondeterminism: " << this->
getNondeterminismVariables().size() <<
" meta variables (" << nondeterminismVariableCount <<
" DD variables)";
89template<storm::dd::DdType Type,
typename ValueType>
96template<storm::dd::DdType Type,
typename ValueType>
97void NondeterministicModel<Type, ValueType>::createIllegalMask() {
99 illegalMask = !(this->getTransitionMatrix().notZero().existsAbstract(this->getColumnVariables())) && this->getReachableStates();
102template<storm::dd::DdType Type,
typename ValueType>
104 if (!keepNondeterminism) {
ValueType getValue(std::map< storm::expressions::Variable, int_fast64_t > const &metaVariableToValueMap=std::map< storm::expressions::Variable, int_fast64_t >()) const
Retrieves the value of the function when all meta variables are assigned the values of the given mapp...
Bdd< LibraryType > existsAbstract(std::set< storm::expressions::Variable > const &metaVariables) const
Existentially abstracts from the given meta variables.
storm::dd::DdManager< Type > & getManager() const
storm::dd::Add< Type, ValueType > const & getTransitionMatrix() const
virtual void printDdVariableInformationToStream(std::ostream &out) const
Prints information about the DD variables to the specified stream.
std::set< storm::expressions::Variable > const & getColumnVariables() const
virtual storm::dd::Bdd< Type > getQualitativeTransitionMatrix(bool keepNondeterminism=true) const
Retrieves the matrix qualitatively (i.e.
Model(Model< Type, ValueType > const &other)=default
storm::dd::Add< Type, ValueType > transitionMatrix
void printModelInformationFooterToStream(std::ostream &out) const
std::set< storm::expressions::Variable > const & getRowVariables() const
void printModelInformationHeaderToStream(std::ostream &out) const
std::unordered_map< std::string, RewardModelType > & getRewardModels()
virtual uint_fast64_t getNumberOfChoices() const override
Retrieves the number of nondeterministic choices in the model.
virtual std::set< storm::expressions::Variable > const & getNondeterminismVariables() const override
Retrieves the meta variables used to encode the nondeterminism in the model.
virtual void printModelInformationToStream(std::ostream &out) const override
Prints information about the model to the specified stream.
storm::dd::Bdd< Type > const & getIllegalMask() const
Retrieves a BDD characterizing all illegal nondeterminism encodings in the model.
storm::dd::Bdd< Type > getIllegalSuccessorMask() const
Retrieves a BDD characterizing the illegal successors for each choice.
virtual void reduceToStateBasedRewards() override
Converts the transition rewards of all reward models to state-based rewards.
storm::dd::Bdd< Type > illegalMask
virtual void printDdVariableInformationToStream(std::ostream &out) const override
Prints information about the DD variables to the specified stream.
NondeterministicModel(NondeterministicModel< Type, ValueType > const &other)=default
virtual storm::dd::Bdd< Type > getQualitativeTransitionMatrix(bool keepNondeterminism=true) const override
Retrieves the matrix qualitatively (i.e.