Storm
A Modern Probabilistic Model Checker
Loading...
Searching...
No Matches
Dtmc.h
Go to the documentation of this file.
1#ifndef STORM_MODELS_SYMBOLIC_DTMC_H_
2#define STORM_MODELS_SYMBOLIC_DTMC_H_
3
6
7namespace storm {
8namespace models {
9namespace symbolic {
10
14template<storm::dd::DdType Type, typename ValueType = double>
15class Dtmc : public DeterministicModel<Type, ValueType> {
16 public:
18
19 Dtmc(Dtmc<Type, ValueType> const& other) = default;
20 Dtmc& operator=(Dtmc<Type, ValueType> const& other) = default;
21
22#ifndef WINDOWS
23 Dtmc(Dtmc<Type, ValueType>&& other) = default;
25#endif
26
43 Dtmc(std::shared_ptr<storm::dd::DdManager<Type>> manager, storm::dd::Bdd<Type> reachableStates, storm::dd::Bdd<Type> initialStates,
44 storm::dd::Bdd<Type> deadlockStates, storm::dd::Add<Type, ValueType> transitionMatrix, std::set<storm::expressions::Variable> const& rowVariables,
45 std::shared_ptr<storm::adapters::AddExpressionAdapter<Type, ValueType>> rowExpressionAdapter,
46 std::set<storm::expressions::Variable> const& columnVariables,
47 std::vector<std::pair<storm::expressions::Variable, storm::expressions::Variable>> const& rowColumnMetaVariablePairs,
48 std::map<std::string, storm::expressions::Expression> labelToExpressionMap = std::map<std::string, storm::expressions::Expression>(),
49 std::unordered_map<std::string, RewardModelType> const& rewardModels = std::unordered_map<std::string, RewardModelType>());
50
65 Dtmc(std::shared_ptr<storm::dd::DdManager<Type>> manager, storm::dd::Bdd<Type> reachableStates, storm::dd::Bdd<Type> initialStates,
66 storm::dd::Bdd<Type> deadlockStates, storm::dd::Add<Type, ValueType> transitionMatrix, std::set<storm::expressions::Variable> const& rowVariables,
67 std::set<storm::expressions::Variable> const& columnVariables,
68 std::vector<std::pair<storm::expressions::Variable, storm::expressions::Variable>> const& rowColumnMetaVariablePairs,
69 std::map<std::string, storm::dd::Bdd<Type>> labelToBddMap = std::map<std::string, storm::dd::Bdd<Type>>(),
70 std::unordered_map<std::string, RewardModelType> const& rewardModels = std::unordered_map<std::string, RewardModelType>());
71
72 virtual void reduceToStateBasedRewards() override;
73
74 template<typename NewValueType>
75 std::shared_ptr<Dtmc<Type, NewValueType>> toValueType() const;
76};
77
78} // namespace symbolic
79} // namespace models
80} // namespace storm
81
82#endif /* STORM_MODELS_SYMBOLIC_DTMC_H_ */
Base class for all deterministic symbolic models.
Model< Type, ValueType >::RewardModelType RewardModelType
This class represents a discrete-time Markov chain.
Definition Dtmc.h:15
Dtmc & operator=(Dtmc< Type, ValueType > &&other)=default
virtual void reduceToStateBasedRewards() override
Converts the transition rewards of all reward models to state-based rewards.
Definition Dtmc.cpp:41
Dtmc & operator=(Dtmc< Type, ValueType > const &other)=default
DeterministicModel< Type, ValueType >::RewardModelType RewardModelType
Definition Dtmc.h:17
std::shared_ptr< Dtmc< Type, NewValueType > > toValueType() const
Definition Dtmc.cpp:49
Dtmc(Dtmc< Type, ValueType > const &other)=default
Dtmc(Dtmc< Type, ValueType > &&other)=default
storm::dd::Add< Type, ValueType > transitionMatrix
Definition Model.h:409
LabParser.cpp.
Definition cli.cpp:18