OTX-Runtime for Java  
OpenTestSystem.Otx.Runtime.Api.DataTypes.RangedFloat Class Reference

A RangedObject is an otx:ComplexType and represents the abstract base data type for all ranged data types. More...

Inheritance diagram for OpenTestSystem.Otx.Runtime.Api.DataTypes.RangedFloat:
Inheritance graph

Public Member Functions

 RangedFloat (double value, List< FloatInterval > interval, boolean isValueWritten)
 Initializes a new instance of the RangedFloat class. More...
 
List< FloatIntervalGetInterval ()
 Gets List of FloatIntervalLiteral of the RangedFloat. More...
 
double GetValue ()
 Gets the Float value of the RangedFloat. More...
 
boolean IsInRange ()
 Checks if the value is in range. More...
 
- Public Member Functions inherited from OpenTestSystem.Otx.Runtime.Api.DataTypes.RangedObject
boolean IsValueWritten ()
 A value is considered written if one of the set value actions is called. More...
 

Detailed Description

A RangedObject is an otx:ComplexType and represents the abstract base data type for all ranged data types.

Constructor & Destructor Documentation

◆ RangedFloat()

OpenTestSystem.Otx.Runtime.Api.DataTypes.RangedFloat.RangedFloat ( double  value,
List< FloatInterval interval,
boolean  isValueWritten 
)
inline

Initializes a new instance of the RangedFloat class.

Parameters
valueThe value
intervalThe List of FloatInterval
isValueWrittenA 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.

Member Function Documentation

◆ GetInterval()

List<FloatInterval> OpenTestSystem.Otx.Runtime.Api.DataTypes.RangedFloat.GetInterval ( )
inline

Gets List of FloatIntervalLiteral of the RangedFloat.

Returns
List of FloatInterval

◆ GetValue()

double OpenTestSystem.Otx.Runtime.Api.DataTypes.RangedFloat.GetValue ( )
inline

Gets the Float value of the RangedFloat.

Returns
The value

◆ IsInRange()

boolean OpenTestSystem.Otx.Runtime.Api.DataTypes.RangedFloat.IsInRange ( )
inline

Checks if the value is in range.

Returns
True if the value of the ranged object is inside one of the intervals or if the ranged object has no intervals.

Reimplemented from OpenTestSystem.Otx.Runtime.Api.DataTypes.RangedObject.


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