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
 Describes a position in a list. The first item in a list has the index value 0. More...
 
ByteFieldTerm newByteField
 Operand of type ByteField. More...
 
- Public Attributes inherited from OpenTestSystem.Otx.Core.Actions.ByteFieldModifier
ByteFieldVariable byteField
 Identifies a ByteField variable which shall be modified. More...
 
- Public Attributes inherited from OpenTestSystem.Otx.Core.Actions.ActionRealisation
OtxLink validFor
 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
ByteField.ReplaceSubByteField(ByteFieldVariable, ByteFieldVariable, IntegerTerm);
Examples
// Local Declarations
Integer Index1 = 0;
ByteField ByteField1 = &00FF;
ByteField NewByteField1;
// Flow
ByteField.ReplaceSubByteField(ByteField1, NewByteField1, Index1);

Member Data Documentation

◆ index

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

Describes a position in a list. The first item in a list has the index value 0.

◆ newByteField

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

Operand of type ByteField.