Storm
A Modern Probabilistic Model Checker
Loading...
Searching...
No Matches
RewardAccumulation.h
Go to the documentation of this file.
1#pragma once
2#include <cstdint>
3#include <iostream>
4
5namespace storm {
6namespace logic {
7
9 public:
10 RewardAccumulation(bool steps, bool time, bool exit);
11 RewardAccumulation(RewardAccumulation const& other) = default;
15
16 bool isStepsSet() const; // If set, choice rewards and transition rewards are accumulated upon taking the transition
17 bool isTimeSet() const; // If set, state rewards are accumulated over time (assuming 0 time passes in discrete-time model states)
18 bool isExitSet() const; // If set, state rewards are accumulated upon exiting the state
19
20 // Returns true iff accumulation for all types of reward is disabled.
21 bool isEmpty() const;
22
23 // Returns the number of types of rewards that are enabled.
24 uint64_t size() const;
25
26 private:
27 bool time, steps, exit;
28};
29
30std::ostream& operator<<(std::ostream& out, RewardAccumulation const& acc);
31
32} // namespace logic
33} // namespace storm
RewardAccumulation(RewardAccumulation &&other)=default
RewardAccumulation & operator=(RewardAccumulation &&other)=default
RewardAccumulation & operator=(RewardAccumulation const &other)=default
RewardAccumulation(RewardAccumulation const &other)=default
std::ostream & operator<<(std::ostream &out, Bound const &bound)
Definition Bound.h:40
LabParser.cpp.
Definition cli.cpp:18