Storm
1.10.0.1
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
5
namespace
storm
{
6
namespace
logic {
7
8
class
RewardAccumulation
{
9
public
:
10
RewardAccumulation
(
bool
steps,
bool
time,
bool
exit);
11
RewardAccumulation
(
RewardAccumulation
const
& other) =
default
;
12
RewardAccumulation
(
RewardAccumulation
&& other) =
default
;
13
RewardAccumulation
&
operator=
(
RewardAccumulation
const
& other) =
default
;
14
RewardAccumulation
&
operator=
(
RewardAccumulation
&& 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
30
std::ostream& operator<<(std::ostream& out,
RewardAccumulation
const
& acc);
31
32
}
// namespace logic
33
}
// namespace storm
storm::logic::RewardAccumulation
Definition
RewardAccumulation.h:8
storm::logic::RewardAccumulation::isStepsSet
bool isStepsSet() const
Definition
RewardAccumulation.cpp:11
storm::logic::RewardAccumulation::size
uint64_t size() const
Definition
RewardAccumulation.cpp:27
storm::logic::RewardAccumulation::isEmpty
bool isEmpty() const
Definition
RewardAccumulation.cpp:23
storm::logic::RewardAccumulation::RewardAccumulation
RewardAccumulation(RewardAccumulation &&other)=default
storm::logic::RewardAccumulation::operator=
RewardAccumulation & operator=(RewardAccumulation &&other)=default
storm::logic::RewardAccumulation::operator=
RewardAccumulation & operator=(RewardAccumulation const &other)=default
storm::logic::RewardAccumulation::isExitSet
bool isExitSet() const
Definition
RewardAccumulation.cpp:19
storm::logic::RewardAccumulation::isTimeSet
bool isTimeSet() const
Definition
RewardAccumulation.cpp:15
storm::logic::RewardAccumulation::RewardAccumulation
RewardAccumulation(RewardAccumulation const &other)=default
storm
LabParser.cpp.
Definition
AutomaticSettings.cpp:13
src
storm
logic
RewardAccumulation.h
Generated by
1.9.8