OTX Reference  
OpenTestSystem.Otx.Extensions.DiagCom.DataTypes.ResultState Class Reference

ResultState is an enumeration type describing the state of a Result. More...

Inheritance diagram for OpenTestSystem.Otx.Extensions.DiagCom.DataTypes.ResultState:
Inheritance graph

Public Attributes

ResultStateLiteral init
 This optional element stands for the hard-coded initialisation value of the identifier at declaration time More...
 

Detailed Description

ResultState is an enumeration type describing the state of a Result.

Order Relation
ResultState values may occur as operands of comparisons. For this case, the following order relation is defined. Started with the lowest value ALL_FAILED = 0:
ALL_FAILED < ALL_INVALID < ALL_NEGATIVE < ALL_POSITIVE < FAILED < INVALID < NEGATIVE < POSITIVE
Literal
The syntax for Literals for complex data types will be used, where the member value is one of the values in the list.
@ResultState:ALL_FAILED|ALL_INVALID|ALL_NEGATIVE|ALL_POSITIVE| FAILED|INVALID|NEGATIVE|POSITIVE

Conversion terms
The following table shows the rules for conversion to another data type:

ConversionResultSample
ToBooleanUndefined (should not be used)
ToIntegerReturns the index of the value in the ResultStates enumeration (smallest index is 0)Integer val = ToInteger(@ResultState:ALL_FAILED); // Returns 0
ToFloatUndefined (should not be used)
ToStringReturns the name of the enumeration valueString s = ToString(@ResultState:ALL_FAILED); // Returns "ALL_FAILED"
ToByteFieldUndefined (should not be used)

Sample
DiagCom.ResultState ResultStateVariable = @ResultState:ALL_FAILED;

Member Data Documentation

◆ init

ResultStateLiteral OpenTestSystem.Otx.Extensions.DiagCom.DataTypes.ResultState.init

This optional element stands for the hard-coded initialisation value of the identifier at declaration time