#include "storm/storage/DistributionWithReward.h" #include "storm/adapters/RationalFunctionAdapter.h" #include "storm/utility/ConstantsComparator.h" namespace storm { namespace storage { template DistributionWithReward::DistributionWithReward(ValueType const& reward) : Distribution(), reward(reward) { // Intentionally left empty. } template bool DistributionWithReward::equals(DistributionWithReward const& other, storm::utility::ConstantsComparator const& comparator) const { if (this->reward != other.reward) { return false; } return Distribution::equals(other, comparator); } template bool DistributionWithReward::less(DistributionWithReward const& other, storm::utility::ConstantsComparator const& comparator) const { if (comparator.isLess(this->reward, other.reward)) { return true; } else if (comparator.isLess(other.reward, this->reward)) { return false; } else { return Distribution::less(other, comparator); } } template void DistributionWithReward::setReward(ValueType const& reward) { this->reward = reward; } template ValueType const& DistributionWithReward::getReward() const { return reward; } template class DistributionWithReward; #ifdef STORM_HAVE_CARL template class DistributionWithReward; template class DistributionWithReward; #endif } }