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

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>

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

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

Detailed Description

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.

Constructor & Destructor Documentation

◆ IntegerInterval() [1/3]

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

Initializes a new instance of the IntegerInterval class.

◆ IntegerInterval() [2/3]

OpenTestSystem::Otx::Runtime::Api::DataTypes::IntegerInterval::IntegerInterval ( long long  lowerLimit)

Initializes a new instance of the IntegerInterval class.

Parameters
lowerLimitThe lower limit of the interval

◆ IntegerInterval() [3/3]

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.

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()

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.

Returns
LowerLimit

◆ GetUpperLimit()

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.

Returns
UpperLimit

◆ ToLiteralString()

std::string OpenTestSystem::Otx::Runtime::Api::DataTypes::IntegerInterval::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: