Storm 1.11.1.1
A Modern Probabilistic Model Checker
Loading...
Searching...
No Matches
DistributionWithReward.h
Go to the documentation of this file.
1#pragma once
2
4
7
8namespace storm {
9
10namespace storage {
11
12template<typename ValueType, typename StateType = uint32_t>
13class DistributionWithReward : public Distribution<ValueType, StateType> {
14 public:
18 DistributionWithReward(ValueType const& reward = storm::utility::zero<ValueType>());
19
24
32
34
38 void setReward(ValueType const& reward);
39
43 ValueType const& getReward() const;
44
45 private:
46 ValueType reward;
47};
48
49} // namespace storage
50} // namespace storm
DistributionWithReward & operator=(DistributionWithReward &&other)=default
DistributionWithReward(DistributionWithReward &&other)=default
ValueType const & getReward() const
Retrieves the reward of this distribution.
DistributionWithReward & operator=(DistributionWithReward const &other)=default
bool less(DistributionWithReward< ValueType, StateType > const &other, storm::utility::ConstantsComparator< ValueType > const &comparator) const
bool equals(DistributionWithReward< ValueType, StateType > const &other, storm::utility::ConstantsComparator< ValueType > const &comparator) const
Checks whether the two distributions specify the same probabilities to go to the same states.
DistributionWithReward(DistributionWithReward const &other)=default
void setReward(ValueType const &reward)
Sets the reward of this distribution.