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

ResponseState is an enumeration type describing the state of a Response. More...

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

Public Attributes

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

Detailed Description

ResponseState is an enumeration type describing the state of a Response.

Order Relation
ResponseState values may occur as operands of comparisons. For this case, the following order relation is defined. Started with the lowest value FAILED = 0: 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. @ResponseState: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 ResponseStates enumeration (smallest index is 0)Integer val = ToInteger(@ResponseState:FAILED); // Returns 0
ToFloatUndefined (should not be used)
ToStringReturns the name of the enumeration valueString s = ToString(@ResponseState:FAILED); // Returns "FAILED"
ToByteFieldUndefined (should not be used)

Sample
DiagCom.ResponseState ResponseStateVariable = @ResponseState:FAILED;

Member Data Documentation

◆ init

ResponseStateLiteral OpenTestSystem.Otx.Extensions.DiagCom.DataTypes.ResponseState.init

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