Storm 1.14.0.1
A Modern Probabilistic Model Checker
Loading...
Searching...
No Matches
Bound.h
Go to the documentation of this file.
1#pragma once
2
9
10namespace storm {
11namespace logic {
12struct Bound {
16
19
20 template<typename ValueType>
21 bool isSatisfied(ValueType const& compareValue) const;
22
23 storm::RationalNumber evaluateThresholdAsRational() const;
24
25 template<typename ValueType>
26 ValueType evaluateThresholdAs() const;
27
31
35
36 friend std::ostream& operator<<(std::ostream& out, Bound const& bound);
37};
38
39inline std::ostream& operator<<(std::ostream& out, Bound const& bound) {
40 out << bound.comparisonType << bound.threshold;
41 return out;
42}
43} // namespace logic
44
45} // namespace storm
std::ostream & operator<<(std::ostream &out, Bound const &bound)
Definition Bound.h:39
ComparisonType invert(ComparisonType t)
ComparisonType comparisonType
Definition Bound.h:17
Bound(ComparisonType comparisonType, storm::expressions::Expression const &threshold)
Definition Bound.h:13
Bound getInvertedBound() const
Definition Bound.h:32
bool isLowerBound() const
Definition Bound.h:28
storm::expressions::Expression threshold
Definition Bound.h:18
friend std::ostream & operator<<(std::ostream &out, Bound const &bound)
Definition Bound.h:39
storm::RationalNumber evaluateThresholdAsRational() const
Definition Bound.cpp:23
bool isSatisfied(ValueType const &compareValue) const
Definition Bound.cpp:8
ValueType evaluateThresholdAs() const
Definition Bound.cpp:28