Storm 2.0.0.3
A Modern Probabilistic Model Checker
Loading...
Searching...
No Matches
RewardModelInformation.h
Go to the documentation of this file.
1#pragma once
2
3#include <boost/any.hpp>
4
6
7namespace storm {
8
9namespace expressions {
10class Variable;
11class Expression;
12} // namespace expressions
13
14namespace jani {
15
16class Model;
17
19 public:
21 RewardModelInformation(storm::jani::Model const& janiModel, std::string const& rewardModelNameIdentifier);
22 RewardModelInformation(storm::jani::Model const& janiModel, storm::expressions::Expression const& rewardModelExpression);
23
24 virtual ~RewardModelInformation() = default;
26
27 virtual void traverse(Location const& location, boost::any const& data) override;
28 virtual void traverse(TemplateEdge const& templateEdge, boost::any const& data) override;
29 virtual void traverse(TemplateEdgeDestination const& TemplateEdgeDestination, boost::any const& data) override;
30
35
39 bool hasStateRewards() const;
40
44 bool hasActionRewards() const;
45
49 bool hasTransitionRewards() const;
50
54};
55} // namespace jani
56} // namespace storm
virtual void traverse(Model const &model, boost::any const &data)
Jani Location:
Definition Location.h:15
bool hasTransitionRewards() const
Returns true iff the given reward model has transition rewards.
virtual void traverse(Location const &location, boost::any const &data) override
bool hasActionRewards() const
Returns true iff the given reward model has action rewards.
virtual ~RewardModelInformation()=default
RewardModelInformation(bool hasStateRewards, bool hasActionRewards, bool hasTransitionRewards)
bool hasStateRewards() const
Returns true iff the given reward model has state rewards.
RewardModelInformation join(RewardModelInformation const &other) const
Returns the resulting information when joining the two reward models.
The contract of a DD backend.