OTX-Runtime for C++  
OpenTestSystem::Otx::Runtime::Api::DataTypes::FloatInterval Class Reference

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>

Inheritance diagram for OpenTestSystem::Otx::Runtime::Api::DataTypes::FloatInterval:
Inheritance graph

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...
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ FloatInterval() [1/3]

OpenTestSystem::Otx::Runtime::Api::DataTypes::FloatInterval::FloatInterval ( )

Initializes a new instance of the FloatInterval class.

◆ FloatInterval() [2/3]

OpenTestSystem::Otx::Runtime::Api::DataTypes::FloatInterval::FloatInterval ( double  lowerLimit)

Initializes a new instance of the FloatInterval class.

Parameters
lowerLimitThe lower limit of the interval

◆ FloatInterval() [3/3]

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.

Parameters
lowerLimitThe lower limit of the interval
upperLimitThe upper limit of the interval
semanticThe semantics of how values inside the interval are interpreted
labelThe label to categorize the interval

Member Function Documentation

◆ GetLowerLimit()

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.

Returns
LowerLimit

◆ GetUpperLimit()

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.

Returns
UpperLimit

◆ ToLiteralString()

std::string OpenTestSystem::Otx::Runtime::Api::DataTypes::FloatInterval::ToLiteralString ( ) const
overridevirtual

Gets literal string.

Returns
Literal string.

Reimplemented from OpenTestSystem::Otx::Runtime::Api::DataTypes::Object.


The documentation for this class was generated from the following file: