Storm
A Modern Probabilistic Model Checker
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
LongRunAverageRewardFormula.h
Go to the documentation of this file.
1#ifndef STORM_LOGIC_LONGRUNAVERAGEREWARDFORMULA_H_
2#define STORM_LOGIC_LONGRUNAVERAGEREWARDFORMULA_H_
3
4#include <boost/optional.hpp>
7
8namespace storm {
9namespace logic {
11 public:
12 LongRunAverageRewardFormula(boost::optional<RewardAccumulation> rewardAccumulation = boost::none);
13
15 // Intentionally left empty.
16 }
17
18 virtual bool isLongRunAverageRewardFormula() const override;
19 virtual bool isRewardPathFormula() const override;
20 bool hasRewardAccumulation() const;
22 std::shared_ptr<LongRunAverageRewardFormula const> stripRewardAccumulation() const;
23
24 virtual boost::any accept(FormulaVisitor const& visitor, boost::any const& data) const override;
25
26 virtual std::ostream& writeToStream(std::ostream& out, bool allowParentheses = false) const override;
27
28 private:
29 boost::optional<RewardAccumulation> rewardAccumulation;
30};
31} // namespace logic
32} // namespace storm
33
34#endif /* STORM_LOGIC_LONGRUNAVERAGEREWARDFORMULA_H_ */
std::shared_ptr< LongRunAverageRewardFormula const > stripRewardAccumulation() const
virtual std::ostream & writeToStream(std::ostream &out, bool allowParentheses=false) const override
Writes the forumla to the given output stream.
RewardAccumulation const & getRewardAccumulation() const
virtual boost::any accept(FormulaVisitor const &visitor, boost::any const &data) const override
LabParser.cpp.
Definition cli.cpp:18