1 #ifndef OpenTestSystem_Otx_Runtime_Api_DataTypes_Interval_H
2 #define OpenTestSystem_Otx_Runtime_Api_DataTypes_Interval_H
8 namespace OpenTestSystem {
namespace Otx {
namespace Runtime {
namespace Api {
namespace DataTypes {
12 namespace OpenTestSystem {
namespace Otx {
namespace Runtime {
namespace Api {
112 const std::string& label =
"");
134 bool IsInsideInterval(
double value);
156 long long lowerLimit);
166 long long lowerLimit,
167 long long upperLimit,
169 const std::string& label =
"");
191 bool IsInsideInterval(
long long value);
193 long long _lowerLimit;
194 long long _upperLimit;
213 std::shared_ptr<Quantity> lowerLimit);
223 std::shared_ptr<Quantity> lowerLimit,
224 std::shared_ptr<Quantity> upperLimit,
226 const std::string& label =
"");
248 bool IsInsideInterval(std::shared_ptr<Quantity> value);
250 std::shared_ptr<Quantity> _lowerLimit;
251 std::shared_ptr<Quantity> _upperLimit;
272 const std::string& regExp,
274 const std::string& label =
"");
290 bool IsInsideInterval(
const std::string& value);
A FloatInterval is a NumericInterval and represents an interval with a lower and an upper limit....
Definition: Interval.h:87
FloatInterval(double lowerLimit)
Initializes a new instance of the FloatInterval class.
double GetUpperLimit() const
Gets the upper limit of the interval. If the upper limit is omitted, the upper limit is Infinity.
std::string ToLiteralString() const override
Gets literal string.
FloatInterval(double lowerLimit, double upperLimit, IntervalSemantics semantic=IntervalSemantics::None, const std::string &label="")
Initializes a new instance of the FloatInterval class.
double GetLowerLimit() const
Gets the lower limit of the interval. If the lower limit is omitted, the lower limit is -Infinity.
FloatInterval()
Initializes a new instance of the FloatInterval class.
An IntegerInterval is a NumericInterval and represents an interval with a lower and an upper limit....
Definition: Interval.h:144
IntegerInterval(long long lowerLimit, long long upperLimit, IntervalSemantics semantic=IntervalSemantics::None, const std::string &label="")
Initializes a new instance of the IntegerInterval class.
IntegerInterval()
Initializes a new instance of the IntegerInterval class.
IntegerInterval(long long lowerLimit)
Initializes a new instance of the IntegerInterval class.
long long GetUpperLimit() const
Gets the upper limit of the interval. If the upper limit is omitted, the upper limit is the upper bou...
long long GetLowerLimit() const
Gets the lower limit of the interval. If the lower limit is omitted, the lower limit is the lower bou...
std::string ToLiteralString() const override
Gets literal string.
An Interval is an otx:ComplexType and represents the abstract base data type for all interval data ty...
Definition: Interval.h:52
IntervalSemantics GetSemantic() const
Gets the semantics of how values inside the interval are interpreted. If the type is omitted,...
std::string GetLabel() const
Gets the optional label of the interval. If the label is omitted, the label is an empty String.
std::string GetSemanticAsString() const
Gets the optional semantics of the interval as a string. If the semantics is omitted,...
A NumericInterval represents the abstract base data type for all numeric interval data types.
Definition: Interval.h:80
Represents base of OTX DataTypes.
Definition: Object.h:17
A QuantityInterval is an NumericInterval and represents an interval with a lower and an upper limit....
Definition: Interval.h:201
std::shared_ptr< Quantity > GetUpperLimit() const
Gets the upper limit of the interval. If the upper limit is omitted, the upper limit is Infinity.
std::string ToLiteralString() const override
Gets literal string.
QuantityInterval(std::shared_ptr< Quantity > lowerLimit, std::shared_ptr< Quantity > upperLimit, IntervalSemantics semantic=IntervalSemantics::None, const std::string &label="")
Initializes a new instance of the QuantityInterval class.
std::shared_ptr< Quantity > GetLowerLimit() const
Gets the lower limit of the interval. If the lower limit is omitted, the lower limit is -Infinity.
QuantityInterval(std::shared_ptr< Quantity > lowerLimit)
Initializes a new instance of the QuantityInterval class.
QuantityInterval()
Initializes a new instance of the QuantityInterval class.
Definition: Interval.h:258
StringInterval(const std::string ®Exp, IntervalSemantics semantic=IntervalSemantics::None, const std::string &label="")
Initializes a new instance of the StringInterval class.
std::string GetRegExp() const
Gets a regular expression. If the regular expression is omitted, the interval includes all possible s...
StringInterval()
Initializes a new instance of the StringInterval class.
std::string ToLiteralString() const override
Gets literal string.
IntervalSemantics
An IntervalSemantics describes the meaning of a value inside an interval.
Definition: Interval.h:21
@ Warning
Values inside the interval indicate that there might be a problem.
@ Info
Values inside the interval deserve consideration.
@ Success
The interval describes the successful case.
@ None
Values inside the interval have no semantics (Default).
@ Error
Values inside the interval indicate that there is a problem.
Namespace containing all objects related to testing inside automotive industry