OTX Reference
|
|
The category of a communication channel More...
Public Attributes | |
ComChannelCategoryLiteral | init |
Cardinality [0..1] This optional element stands for the hard-coded initialisation value of the identifier at declaration time. More... | |
The category of a communication channel
ComChannelCategory is an enumeration type describing the category of a ComChannel.
Order Relation
ComChannelCategory values may occur as operands of comparisons. For this case, the following order relation is defined. Started with the lowest value BASE_VARIANT = 0:
Literal
The syntax for Literals for complex data types will be used, where the member value is one of the values in the list.
Conversion terms
The following table shows the rules for conversion to another data type:
Conversion | Result | Sample |
---|---|---|
ToBoolean | Undefined (should not be used) | |
ToInteger | Returns the index of the value in the ComChannelCategories enumeration (smallest index is 0) | Integer val = ToInteger(@ComChannelCategory:BASE_VARIANT); // Returns 0 |
ToFloat | Undefined (should not be used) | |
ToString | Returns the name of the enumeration value | String s = ToString(@ComChannelCategory:BASE_VARIANT); // Returns "BASE_VARIANT" |
ToByteField | Undefined (should not be used) |
Sample
ComChannelCategoryLiteral OpenTestSystem.Otx.Extensions.DiagDataBrowsing.DataTypes.ComChannelCategory.init |
Cardinality [0..1]
This optional element stands for the hard-coded initialisation value of the identifier at declaration time.