Storm 1.11.1.1
A Modern Probabilistic Model Checker
Loading...
Searching...
No Matches
Dtmc.h
Go to the documentation of this file.
1#pragma once
2
4
5namespace storm {
6namespace models {
7namespace symbolic {
8
12template<storm::dd::DdType Type, typename ValueType = double>
13class Dtmc : public DeterministicModel<Type, ValueType> {
14 public:
16
17 Dtmc(Dtmc<Type, ValueType> const& other) = default;
18 Dtmc& operator=(Dtmc<Type, ValueType> const& other) = default;
19
20 Dtmc(Dtmc<Type, ValueType>&& other) = default;
22
39 Dtmc(std::shared_ptr<storm::dd::DdManager<Type>> manager, storm::dd::Bdd<Type> reachableStates, storm::dd::Bdd<Type> initialStates,
40 storm::dd::Bdd<Type> deadlockStates, storm::dd::Add<Type, ValueType> transitionMatrix, std::set<storm::expressions::Variable> const& rowVariables,
41 std::shared_ptr<storm::adapters::AddExpressionAdapter<Type, ValueType>> rowExpressionAdapter,
42 std::set<storm::expressions::Variable> const& columnVariables,
43 std::vector<std::pair<storm::expressions::Variable, storm::expressions::Variable>> const& rowColumnMetaVariablePairs,
44 std::map<std::string, storm::expressions::Expression> labelToExpressionMap = std::map<std::string, storm::expressions::Expression>(),
45 std::unordered_map<std::string, RewardModelType> const& rewardModels = std::unordered_map<std::string, RewardModelType>());
46
61 Dtmc(std::shared_ptr<storm::dd::DdManager<Type>> manager, storm::dd::Bdd<Type> reachableStates, storm::dd::Bdd<Type> initialStates,
62 storm::dd::Bdd<Type> deadlockStates, storm::dd::Add<Type, ValueType> transitionMatrix, std::set<storm::expressions::Variable> const& rowVariables,
63 std::set<storm::expressions::Variable> const& columnVariables,
64 std::vector<std::pair<storm::expressions::Variable, storm::expressions::Variable>> const& rowColumnMetaVariablePairs,
65 std::map<std::string, storm::dd::Bdd<Type>> labelToBddMap = std::map<std::string, storm::dd::Bdd<Type>>(),
66 std::unordered_map<std::string, RewardModelType> const& rewardModels = std::unordered_map<std::string, RewardModelType>());
67
68 virtual void reduceToStateBasedRewards() override;
69
70 template<typename NewValueType>
71 std::shared_ptr<Dtmc<Type, NewValueType>> toValueType() const;
72};
73
74} // namespace symbolic
75} // namespace models
76} // namespace storm
Base class for all deterministic symbolic models.
Model< Type, ValueType >::RewardModelType RewardModelType
This class represents a discrete-time Markov chain.
Definition Dtmc.h:13
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:39
Dtmc & operator=(Dtmc< Type, ValueType > const &other)=default
DeterministicModel< Type, ValueType >::RewardModelType RewardModelType
Definition Dtmc.h:15
std::shared_ptr< Dtmc< Type, NewValueType > > toValueType() const
Definition Dtmc.cpp:47
Dtmc(Dtmc< Type, ValueType > const &other)=default
Dtmc(Dtmc< Type, ValueType > &&other)=default
storm::dd::Add< Type, ValueType > transitionMatrix
Definition Model.h:400