OTX Reference  
OpenTestSystem.Otx.Core.Actions.ReplaceSubByteField Class Reference

Replaces part of a ByteField. More...

Inheritance diagram for OpenTestSystem.Otx.Core.Actions.ReplaceSubByteField:
Inheritance graph

Public Attributes

NumericTerm index
 Cardinality [1]
Describes a position in a ByteField. The first byte in a ByteField has the index value 0. More...
 
ByteFieldTerm newByteField
 Cardinality [1]
Operand of type ByteField. More...
 
- Public Attributes inherited from OpenTestSystem.Otx.Core.Actions.ByteFieldModifier
ByteFieldVariable byteField
 Cardinality [1]
Identifies a ByteField variable which shall be modified. More...
 
- Public Attributes inherited from OpenTestSystem.Otx.Core.Actions.ActionRealisation
OtxLink validFor
 Cardinality [0..1]
Validity of ActionRealisation. More...
 

Detailed Description

Replaces part of a ByteField.

The ReplaceSubByteField activity replaces one or more bytes within a ByteFields from the position Index and adapts the size of the ByteField if necessary.

Exceptions
Exceptions.OutOfBoundsExceptionIt is thrown if the index is not within the range [0,n-1], where n is the size of the ByteField.
Syntax
ReplaceSubByteField(ByteFieldVariable, ByteFieldVariable, IntegerTerm);
Examples
// Local Declarations
Integer Index1 = 0;
ByteField ByteField1 = &00FF;
ByteField NewByteField1;
// Flow
ReplaceSubByteField(ByteField1, NewByteField1, Index1);

Member Data Documentation

◆ index

NumericTerm OpenTestSystem.Otx.Core.Actions.ReplaceSubByteField.index

Cardinality [1]
Describes a position in a ByteField. The first byte in a ByteField has the index value 0.

◆ newByteField

ByteFieldTerm OpenTestSystem.Otx.Core.Actions.ReplaceSubByteField.newByteField

Cardinality [1]
Operand of type ByteField.