Difference between revisions of "Core.Actions.SetBit"
Jump to navigation
Jump to search
Line 2: | Line 2: | ||
== Classification == | == Classification == | ||
{{ClassificationActivity | SetBit | Sets a bit in a ByteField | [[Action]] | [[Core|OTX Core library]] | [[ByteFieldModifiers related actions]] | [[OutOfBoundsException]] | - }} | {{ClassificationActivity | SetBit | Sets a bit in a ByteField | [[Action]] | [[Core|OTX Core library]] | [[ByteFieldModifiers related actions]] | [[OutOfBoundsException]] | - }} | ||
+ | |||
+ | == OTL Syntax == | ||
+ | <syntaxhighlight lang="java" enclose="div" style="font-size: medium;"> | ||
+ | ByteField.SetBit(ByteFieldTerm, IntegerTerm, IntegerTerm, BooleanTerm); | ||
+ | </syntaxhighlight> | ||
== Description == | == Description == | ||
Line 14: | Line 19: | ||
{{TableRowPropertie2| Value | [[Boolean]] | [[Term]] | - | [1] | True or false value to which the bit is set}} | {{TableRowPropertie2| Value | [[Boolean]] | [[Term]] | - | [1] | True or false value to which the bit is set}} | ||
|} | |} | ||
+ | |||
+ | == OTL Examples == | ||
+ | <syntaxhighlight lang="java" enclose="div" style="font-size: medium;"> | ||
+ | public procedure main() | ||
+ | { | ||
+ | Integer Positions1 = 1; | ||
+ | ByteField ByteField1 = &00FF; | ||
+ | Integer Index1; | ||
+ | |||
+ | ByteField.SetBit(ByteField1, Index1, Positions1, false); | ||
+ | } | ||
+ | </syntaxhighlight> | ||
== See also == | == See also == |
Revision as of 06:45, 2 February 2015
Classification
Name | SetBit |
Short Description | Sets a bit in a ByteField |
Class | Action |
Extension | OTX Core library |
Group | ByteFieldModifiers related actions |
Exceptions | OutOfBoundsException |
Checker Rules | - |
Standard Compliant | Yes |
OTL Syntax
ByteField.SetBit(ByteFieldTerm, IntegerTerm, IntegerTerm, BooleanTerm);
Description
The OTX SetBit activity sets a bit in a ByteField.
Properties
Name | Data Type | Class | Default | Cardinality | Description |
ByteField | ByteField | Variable | - | [1] | Variable of type ByteField in which the bit should be set |
Index | Integer | Term | - | [1] | The byte in the ByteField in which the bit will be used to determine |
Position | Integer | Term | - | [1] | Bit position in the byte where bit should be set |
Value | Boolean | Term | - | [1] | True or false value to which the bit is set |
OTL Examples
public procedure main()
{
Integer Positions1 = 1;
ByteField ByteField1 = &00FF;
Integer Index1;
ByteField.SetBit(ByteField1, Index1, Positions1, false);
}
See also
Assignment
ProcedureCall
ShiftRight
ShiftLeft
ReplaceSubByteField
AppendByteField
ListConcatenate
ListAppendItems
ListInsertItems
ListRemoveItems
ListClear
MapUnion
MapPutItems
MapRemoveItems
MapClear