OTX Reference  
OpenTestSystem.Otx.Extensions.BlackBox.DataTypes.BlackBox Class Reference

BlackBox is an otx:ComplexType.
More...

Inheritance diagram for OpenTestSystem.Otx.Extensions.BlackBox.DataTypes.BlackBox:
Inheritance graph

Detailed Description

BlackBox is an otx:ComplexType.

The OTX BlackBox data type identifies OTX in a transport or base data type. It can be used to receive the result with a data type is unknown to OTX. Users can use terms or actions to interact with the BlackBox data types.

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

ConversionResultSample
ToBooleanReturns the Boolean counterpart of the argument termBoolean b = ToBoolean(blackBoxVariable); // Returns true/false/TypeMismatchException
ToIntegerReturns the Integer counterpart of the argument termInteger i = ToInteger(blackBoxVariable); // Returns integer value/TypeMismatchException
ToFloatReturns the Float counterpart of the argument termFloat f = ToFloat(blackBoxVariable); // Returns float value/TypeMismatchException
ToStringReturns the String counterpart of the argument termString s = ToString(blackBoxVariable); // Returns string value/TypeMismatchException
ToByteFieldReturns the ByteField counterpart of the argument termByteField bf = ToByteField(blackBoxVariable); // Returns byteField value/TypeMismatchException

Sample

BlackBox.BlackBox BlackBoxVariable;