10template<
typename ValueType,
typename StateType>
15template<
typename ValueType,
typename StateType>
18 if (this->reward != other.reward) {
24template<
typename ValueType,
typename StateType>
27 if (comparator.
isLess(this->reward, other.reward)) {
29 }
else if (comparator.
isLess(other.reward, this->reward)) {
36template<
typename ValueType,
typename StateType>
38 this->reward = reward;
41template<
typename ValueType,
typename StateType>
bool less(Distribution< ValueType, StateType > const &other, storm::utility::ConstantsComparator< ValueType > const &comparator) const
bool equals(Distribution< 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.
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(ValueType const &reward=storm::utility::zero< ValueType >())
Creates an empty distribution.
ValueType const & getReward() const
Retrieves the reward of this distribution.
bool less(DistributionWithReward< ValueType, StateType > const &other, storm::utility::ConstantsComparator< ValueType > const &comparator) const
void setReward(ValueType const &reward)
Sets the reward of this distribution.
bool isLess(ValueType const &value1, ValueType const &value2) const