Storm
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
33
35
39 void setReward(ValueType const& reward);
40
44 ValueType const& getReward() const;
45
46 private:
47 ValueType reward;
48};
49
50} // namespace storage
51} // namespace storm
DistributionWithReward & operator=(DistributionWithReward &&other)=default
bool equals(DistributionWithReward< ValueType, StateType > const &other, storm::utility::ConstantsComparator< ValueType > const &comparator=storm::utility::ConstantsComparator< ValueType >()) const
Checks whether the two distributions specify the same probabilities to go to the same states.
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
DistributionWithReward(DistributionWithReward const &other)=default
void setReward(ValueType const &reward)
Sets the reward of this distribution.
LabParser.cpp.
Definition cli.cpp:18