OTX-Runtime for C++
|
|
A RangedQuantity is a RangedObject and represents a Quantity value which can have one or more intervals. More...
#include <RangedObject.h>
Public Member Functions | |
RangedQuantity (std::shared_ptr< Quantity > value, std::vector< std::shared_ptr< QuantityInterval >> interval) | |
Initializes a new instance of the RangedQuantity class. More... | |
RangedQuantity (std::shared_ptr< Quantity > value, std::vector< std::shared_ptr< QuantityInterval >> interval, bool isValueWritten) | |
Initializes a new instance of the RangedQuantity class. More... | |
std::vector< std::shared_ptr< QuantityInterval > > & | GetInterval () |
Gets List of QuantityIntervalLiteral of the RangedQuantity. More... | |
std::shared_ptr< Quantity > | GetValue () const |
Gets the Quantity value of the RangedQuantity. 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 RangedQuantity is a RangedObject and represents a Quantity value which can have one or more intervals.
OpenTestSystem::Otx::Runtime::Api::DataTypes::RangedQuantity::RangedQuantity | ( | std::shared_ptr< Quantity > | value, |
std::vector< std::shared_ptr< QuantityInterval >> | interval, | ||
bool | isValueWritten | ||
) |
Initializes a new instance of the RangedQuantity class.
value | The value |
interval | The List of QuantityInterval |
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::RangedQuantity::RangedQuantity | ( | std::shared_ptr< Quantity > | value, |
std::vector< std::shared_ptr< QuantityInterval >> | interval | ||
) |
Initializes a new instance of the RangedQuantity class.
value | The value |
interval | The List of QuantityInterval |
std::vector<std::shared_ptr<QuantityInterval> >& OpenTestSystem::Otx::Runtime::Api::DataTypes::RangedQuantity::GetInterval | ( | ) |
Gets List of QuantityIntervalLiteral of the RangedQuantity.
std::shared_ptr<Quantity> OpenTestSystem::Otx::Runtime::Api::DataTypes::RangedQuantity::GetValue | ( | ) | const |
Gets the Quantity value of the RangedQuantity.
|
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.