Storm 1.10.0.1
A Modern Probabilistic Model Checker
Loading...
Searching...
No Matches
Ctmc.h
Go to the documentation of this file.
1#ifndef STORM_MODELS_SYMBOLIC_CTMC_H_
2#define STORM_MODELS_SYMBOLIC_CTMC_H_
3
5
6namespace storm {
7namespace models {
8namespace symbolic {
9
13template<storm::dd::DdType Type, typename ValueType = double>
14class Ctmc : public DeterministicModel<Type, ValueType> {
15 public:
17
18 Ctmc(Ctmc<Type, ValueType> const& other) = default;
19 Ctmc& operator=(Ctmc<Type, ValueType> const& other) = default;
20
21 Ctmc(Ctmc<Type, ValueType>&& other) = default;
23
40 Ctmc(std::shared_ptr<storm::dd::DdManager<Type>> manager, storm::dd::Bdd<Type> reachableStates, storm::dd::Bdd<Type> initialStates,
41 storm::dd::Bdd<Type> deadlockStates, storm::dd::Add<Type, ValueType> transitionMatrix, std::set<storm::expressions::Variable> const& rowVariables,
42 std::shared_ptr<storm::adapters::AddExpressionAdapter<Type, ValueType>> rowExpressionAdapter,
43 std::set<storm::expressions::Variable> const& columnVariables,
44 std::vector<std::pair<storm::expressions::Variable, storm::expressions::Variable>> const& rowColumnMetaVariablePairs,
45 std::map<std::string, storm::expressions::Expression> labelToExpressionMap = std::map<std::string, storm::expressions::Expression>(),
46 std::unordered_map<std::string, RewardModelType> const& rewardModels = std::unordered_map<std::string, RewardModelType>());
47
65 Ctmc(std::shared_ptr<storm::dd::DdManager<Type>> manager, storm::dd::Bdd<Type> reachableStates, storm::dd::Bdd<Type> initialStates,
67 std::set<storm::expressions::Variable> const& rowVariables,
68 std::shared_ptr<storm::adapters::AddExpressionAdapter<Type, ValueType>> rowExpressionAdapter,
69 std::set<storm::expressions::Variable> const& columnVariables,
70 std::vector<std::pair<storm::expressions::Variable, storm::expressions::Variable>> const& rowColumnMetaVariablePairs,
71 std::map<std::string, storm::expressions::Expression> labelToExpressionMap = std::map<std::string, storm::expressions::Expression>(),
72 std::unordered_map<std::string, RewardModelType> const& rewardModels = std::unordered_map<std::string, RewardModelType>());
73
88 Ctmc(std::shared_ptr<storm::dd::DdManager<Type>> manager, storm::dd::Bdd<Type> reachableStates, storm::dd::Bdd<Type> initialStates,
89 storm::dd::Bdd<Type> deadlockStates, storm::dd::Add<Type, ValueType> transitionMatrix, std::set<storm::expressions::Variable> const& rowVariables,
90 std::set<storm::expressions::Variable> const& columnVariables,
91 std::vector<std::pair<storm::expressions::Variable, storm::expressions::Variable>> const& rowColumnMetaVariablePairs,
92 std::map<std::string, storm::dd::Bdd<Type>> labelToBddMap = std::map<std::string, storm::dd::Bdd<Type>>(),
93 std::unordered_map<std::string, RewardModelType> const& rewardModels = std::unordered_map<std::string, RewardModelType>());
94
110 Ctmc(std::shared_ptr<storm::dd::DdManager<Type>> manager, storm::dd::Bdd<Type> reachableStates, storm::dd::Bdd<Type> initialStates,
112 std::set<storm::expressions::Variable> const& rowVariables, std::set<storm::expressions::Variable> const& columnVariables,
113 std::vector<std::pair<storm::expressions::Variable, storm::expressions::Variable>> const& rowColumnMetaVariablePairs,
114 std::map<std::string, storm::dd::Bdd<Type>> labelToBddMap = std::map<std::string, storm::dd::Bdd<Type>>(),
115 std::unordered_map<std::string, RewardModelType> const& rewardModels = std::unordered_map<std::string, RewardModelType>());
116
123
124 virtual void reduceToStateBasedRewards() override;
125
131
132 template<typename NewValueType>
133 std::shared_ptr<Ctmc<Type, NewValueType>> toValueType() const;
134
135 private:
136 mutable boost::optional<storm::dd::Add<Type, ValueType>> exitRates;
137};
138
139} // namespace symbolic
140} // namespace models
141} // namespace storm
142
143#endif /* STORM_MODELS_SYMBOLIC_CTMC_H_ */
This class represents a continuous-time Markov chain.
Definition Ctmc.h:14
storm::dd::Add< Type, ValueType > const & getExitRateVector() const
Retrieves the exit rate vector of the CTMC.
Definition Ctmc.cpp:69
Ctmc & operator=(Ctmc< Type, ValueType > &&other)=default
Ctmc(Ctmc< Type, ValueType > &&other)=default
Ctmc & operator=(Ctmc< Type, ValueType > const &other)=default
std::shared_ptr< Ctmc< Type, NewValueType > > toValueType() const
Definition Ctmc.cpp:93
storm::dd::Add< Type, ValueType > computeProbabilityMatrix() const
Definition Ctmc.cpp:87
DeterministicModel< Type, ValueType >::RewardModelType RewardModelType
Definition Ctmc.h:16
virtual void reduceToStateBasedRewards() override
Converts the transition rewards of all reward models to state-based rewards.
Definition Ctmc.cpp:77
Ctmc(Ctmc< Type, ValueType > const &other)=default
Base class for all deterministic symbolic models.
Model< Type, ValueType >::RewardModelType RewardModelType
storm::dd::Add< Type, ValueType > transitionMatrix
Definition Model.h:410
LabParser.cpp.