OTX-Runtime for C++
|
|
An IntegerInterval is a NumericInterval and represents an interval with a lower and an upper limit. An interval can have an interval semantic and a label to categorize the interval. More...
#include <Interval.h>
Public Member Functions | |
IntegerInterval () | |
Initializes a new instance of the IntegerInterval class. More... | |
IntegerInterval (long long lowerLimit) | |
Initializes a new instance of the IntegerInterval class. More... | |
IntegerInterval (long long lowerLimit, long long upperLimit, IntervalSemantics semantic=IntervalSemantics::None, const std::string &label="") | |
Initializes a new instance of the IntegerInterval class. More... | |
long long | GetLowerLimit () const |
Gets the lower limit of the interval. If the lower limit is omitted, the lower limit is the lower boundary of Integer. More... | |
long long | GetUpperLimit () const |
Gets the upper limit of the interval. If the upper limit is omitted, the upper limit is the upper boundary of Integer. More... | |
std::string | ToLiteralString () const override |
Gets literal string. More... | |
Public Member Functions inherited from OpenTestSystem::Otx::Runtime::Api::DataTypes::Interval | |
std::string | GetLabel () const |
Gets the optional label of the interval. If the label is omitted, the label is an empty String. More... | |
IntervalSemantics | GetSemantic () const |
Gets the semantics of how values inside the interval are interpreted. If the type is omitted, the semantic is NONE. More... | |
std::string | GetSemanticAsString () const |
Gets the optional semantics of the interval as a string. If the semantics is omitted, the semantics is "NONE". More... | |
An IntegerInterval is a NumericInterval and represents an interval with a lower and an upper limit. An interval can have an interval semantic and a label to categorize the interval.
OpenTestSystem::Otx::Runtime::Api::DataTypes::IntegerInterval::IntegerInterval | ( | ) |
Initializes a new instance of the IntegerInterval class.
OpenTestSystem::Otx::Runtime::Api::DataTypes::IntegerInterval::IntegerInterval | ( | long long | lowerLimit | ) |
Initializes a new instance of the IntegerInterval class.
lowerLimit | The lower limit of the interval |
OpenTestSystem::Otx::Runtime::Api::DataTypes::IntegerInterval::IntegerInterval | ( | long long | lowerLimit, |
long long | upperLimit, | ||
IntervalSemantics | semantic = IntervalSemantics::None , |
||
const std::string & | label = "" |
||
) |
Initializes a new instance of the IntegerInterval class.
lowerLimit | The lower limit of the interval |
upperLimit | The upper limit of the interval |
semantic | The semantics of how values inside the interval are interpreted |
label | The label to categorize the interval |
long long OpenTestSystem::Otx::Runtime::Api::DataTypes::IntegerInterval::GetLowerLimit | ( | ) | const |
Gets the lower limit of the interval. If the lower limit is omitted, the lower limit is the lower boundary of Integer.
long long OpenTestSystem::Otx::Runtime::Api::DataTypes::IntegerInterval::GetUpperLimit | ( | ) | const |
Gets the upper limit of the interval. If the upper limit is omitted, the upper limit is the upper boundary of Integer.
|
overridevirtual |
Gets literal string.
Reimplemented from OpenTestSystem::Otx::Runtime::Api::DataTypes::Object.