OTX-Runtime for C++
|
|
A RangedFloat is a RangedObject and represents a Float value which can have one or more intervals. More...
#include <RangedObject.h>
Public Member Functions | |
RangedFloat (double value, std::vector< std::shared_ptr< FloatInterval >> interval) | |
Initializes a new instance of the RangedFloat class. More... | |
RangedFloat (double value, std::vector< std::shared_ptr< FloatInterval >> interval, bool isValueWritten) | |
Initializes a new instance of the RangedFloat class. More... | |
std::vector< std::shared_ptr< FloatInterval > > & | GetInterval () |
Gets List of FloatIntervalLiteral of the RangedFloat. More... | |
double | GetValue () const |
Gets the Float value of the RangedFloat. More... | |
bool | IsInRange () const override |
Checks if the value is in range. More... | |
std::string | ToLiteralString () const override |
Gets literal string. More... | |
Public Member Functions inherited from OpenTestSystem::Otx::Runtime::Api::DataTypes::RangedObject | |
virtual bool | IsValueWritten () const |
A value is considered written if one of the set value actions is called. Overwriting with the same value as the current value counts as written. The initialization of the ranged object with a value does not count as written. More... | |
A RangedFloat is a RangedObject and represents a Float value which can have one or more intervals.
OpenTestSystem::Otx::Runtime::Api::DataTypes::RangedFloat::RangedFloat | ( | double | value, |
std::vector< std::shared_ptr< FloatInterval >> | interval, | ||
bool | isValueWritten | ||
) |
Initializes a new instance of the RangedFloat class.
value | The value |
interval | The List of FloatInterval |
isValueWritten | A value is considered written if one of the set value actions is called. Overwriting with the same value as the current value counts as written. The initialization of the ranged object with a value does not count as written. |
OpenTestSystem::Otx::Runtime::Api::DataTypes::RangedFloat::RangedFloat | ( | double | value, |
std::vector< std::shared_ptr< FloatInterval >> | interval | ||
) |
Initializes a new instance of the RangedFloat class.
value | The value |
interval | The List of FloatInterval |
std::vector<std::shared_ptr<FloatInterval> >& OpenTestSystem::Otx::Runtime::Api::DataTypes::RangedFloat::GetInterval | ( | ) |
Gets List of FloatIntervalLiteral of the RangedFloat.
double OpenTestSystem::Otx::Runtime::Api::DataTypes::RangedFloat::GetValue | ( | ) | const |
Gets the Float value of the RangedFloat.
|
overridevirtual |
Checks if the value is in range.
Implements OpenTestSystem::Otx::Runtime::Api::DataTypes::RangedObject.
|
overridevirtual |
Gets literal string.
Reimplemented from OpenTestSystem::Otx::Runtime::Api::DataTypes::Object.