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

A QuantityInterval is an 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::QuantityInterval:
Inheritance graph

Public Member Functions

 QuantityInterval ()
 Initializes a new instance of the QuantityInterval class. More...
 
 QuantityInterval (std::shared_ptr< Quantity > lowerLimit)
 Initializes a new instance of the QuantityInterval class. More...
 
 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. More...
 
std::shared_ptr< QuantityGetLowerLimit () const
 Gets the lower limit of the interval. If the lower limit is omitted, the lower limit is -Infinity. More...
 
std::shared_ptr< QuantityGetUpperLimit () 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 QuantityInterval is an 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

◆ QuantityInterval() [1/3]

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

Initializes a new instance of the QuantityInterval class.

◆ QuantityInterval() [2/3]

OpenTestSystem::Otx::Runtime::Api::DataTypes::QuantityInterval::QuantityInterval ( std::shared_ptr< Quantity lowerLimit)

Initializes a new instance of the QuantityInterval class.

Parameters
lowerLimitThe lower limit of the interval

◆ QuantityInterval() [3/3]

OpenTestSystem::Otx::Runtime::Api::DataTypes::QuantityInterval::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.

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

std::shared_ptr<Quantity> OpenTestSystem::Otx::Runtime::Api::DataTypes::QuantityInterval::GetLowerLimit ( ) const

Gets the lower limit of the interval. If the lower limit is omitted, the lower limit is -Infinity.

Returns
LowerLimit

◆ GetUpperLimit()

std::shared_ptr<Quantity> OpenTestSystem::Otx::Runtime::Api::DataTypes::QuantityInterval::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::QuantityInterval::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: