OTX-Runtime for C++
|
|
A FloatInterval 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 | |
FloatInterval () | |
Initializes a new instance of the FloatInterval class. More... | |
FloatInterval (double lowerLimit) | |
Initializes a new instance of the FloatInterval class. More... | |
FloatInterval (double lowerLimit, double upperLimit, IntervalSemantics semantic=IntervalSemantics::None, const std::string &label="") | |
Initializes a new instance of the FloatInterval class. More... | |
double | GetLowerLimit () const |
Gets the lower limit of the interval. If the lower limit is omitted, the lower limit is -Infinity. More... | |
double | GetUpperLimit () const |
Gets the upper limit of the interval. If the upper limit is omitted, the upper limit is Infinity. 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... | |
A FloatInterval 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::FloatInterval::FloatInterval | ( | ) |
Initializes a new instance of the FloatInterval class.
OpenTestSystem::Otx::Runtime::Api::DataTypes::FloatInterval::FloatInterval | ( | double | lowerLimit | ) |
Initializes a new instance of the FloatInterval class.
lowerLimit | The lower limit of the interval |
OpenTestSystem::Otx::Runtime::Api::DataTypes::FloatInterval::FloatInterval | ( | double | lowerLimit, |
double | upperLimit, | ||
IntervalSemantics | semantic = IntervalSemantics::None , |
||
const std::string & | label = "" |
||
) |
Initializes a new instance of the FloatInterval 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 |
double OpenTestSystem::Otx::Runtime::Api::DataTypes::FloatInterval::GetLowerLimit | ( | ) | const |
Gets the lower limit of the interval. If the lower limit is omitted, the lower limit is -Infinity.
double OpenTestSystem::Otx::Runtime::Api::DataTypes::FloatInterval::GetUpperLimit | ( | ) | const |
Gets the upper limit of the interval. If the upper limit is omitted, the upper limit is Infinity.
|
overridevirtual |
Gets literal string.
Reimplemented from OpenTestSystem::Otx::Runtime::Api::DataTypes::Object.