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

Represents the Quantity type. More...

Public Member Functions

 Quantity ()
 Initializes a new instance of the Quantity class.
 
 Quantity (double value)
 Initializes a new instance of the Quantity class. More...
 
 Quantity (double value, Unit displayUnit, boolean hasDisplayPrecision, int displayPrecision)
 Initializes a new instance of the Quantity class. More...
 
int GetDisplayPrecision ()
 Gets value. More...
 
Unit GetDisplayUnit ()
 Gets value. More...
 
double GetValue ()
 Gets value. More...
 
boolean HasDisplayPrecision ()
 Gets value. More...
 
void SetValue (double value)
 Sets value. More...
 
String toString ()
 Converts to string. More...
 

Detailed Description

Represents the Quantity type.

Constructor & Destructor Documentation

◆ Quantity() [1/2]

OpenTestSystem.Otx.Runtime.Api.DataTypes.Quantity.Quantity ( double  value)
inline

Initializes a new instance of the Quantity class.

Parameters
valueThe value to construct a Quantity.

◆ Quantity() [2/2]

OpenTestSystem.Otx.Runtime.Api.DataTypes.Quantity.Quantity ( double  value,
Unit  displayUnit,
boolean  hasDisplayPrecision,
int  displayPrecision 
)
inline

Initializes a new instance of the Quantity class.

Parameters
valueThe value to construct a Quantity.

Member Function Documentation

◆ GetDisplayPrecision()

int OpenTestSystem.Otx.Runtime.Api.DataTypes.Quantity.GetDisplayPrecision ( )
inline

Gets value.

Returns
The displayPrecision.

◆ GetDisplayUnit()

Unit OpenTestSystem.Otx.Runtime.Api.DataTypes.Quantity.GetDisplayUnit ( )
inline

Gets value.

Returns
The displayUnit.

◆ GetValue()

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

Gets value.

Returns
The value.

◆ HasDisplayPrecision()

boolean OpenTestSystem.Otx.Runtime.Api.DataTypes.Quantity.HasDisplayPrecision ( )
inline

Gets value.

Returns
The hasDisplayPrecision.

◆ SetValue()

void OpenTestSystem.Otx.Runtime.Api.DataTypes.Quantity.SetValue ( double  value)
inline

Sets value.

Parameters
valueThe value to set into.

◆ toString()

String OpenTestSystem.Otx.Runtime.Api.DataTypes.Quantity.toString ( )
inline

Converts to string.

Returns
Returns the string.

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