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

ByteField bits to the left More...

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

Public Attributes

NumericTerm positions
 Representing the bit position in the ByteField. The position not be negative. 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

ByteField bits to the left

The ShiftLeft-activity shifts the bits in a ByteField to the left. The least significant bits are padded with zeroes here.

Note
The activity has no effect on empty ByteFields.
Exceptions
Exceptions.OutOfBoundsExceptionIt is thrown if the number of positions to shift is a negative number.
Syntax
ByteField.ShiftLeft(ByteFieldVariable, IntegerTerm);
Examples
// Local Declarations
Integer Positions1 = 0;
ByteField ByteField1 = &00FF;
// Flow
ByteField.ShiftLeft(ByteField1, Positions1);

Member Data Documentation

◆ positions

NumericTerm OpenTestSystem.Otx.Core.Actions.ShiftLeft.positions

Representing the bit position in the ByteField. The position not be negative.