Difference between revisions of "Core.Terms.BitwiseAnd"

From emotive
Jump to navigation Jump to search
(Created page with "Category:Core == Classification == {{ClassificationActivity | BitwiseAnd | Bitwise AND operation two ByteFields | Term | OTX Core library | ByteField operat...")
 
 
(6 intermediate revisions by 3 users not shown)
Line 1: Line 1:
[[Category:Core]]
+
{{DISPLAYTITLE:OTX '''BitwiseAnd'''}}[[Category:Core]]
 
== Classification ==
 
== Classification ==
 
{{ClassificationActivity | BitwiseAnd | Bitwise AND operation two ByteFields | [[Term]] | [[Core|OTX Core library]] | [[ByteField operations]] | - | - }}
 
{{ClassificationActivity | BitwiseAnd | Bitwise AND operation two ByteFields | [[Term]] | [[Core|OTX Core library]] | [[ByteField operations]] | - | - }}
  
== Pseudo-Code Syntax ==
+
== OTL Syntax ==
 
<syntaxhighlight lang="java" enclose="div" style="font-size: medium;">
 
<syntaxhighlight lang="java" enclose="div" style="font-size: medium;">
 
Value = ByteFieldTerm1 & ByteFieldTerm2
 
Value = ByteFieldTerm1 & ByteFieldTerm2
Line 13: Line 13:
 
{{Important|Please keep in mind that this [[TermActivity]] in the form of an activity exists and no text can be entered. According to the respective [[ActionNode]] can further properties are added.}}
 
{{Important|Please keep in mind that this [[TermActivity]] in the form of an activity exists and no text can be entered. According to the respective [[ActionNode]] can further properties are added.}}
  
{{TermReturnValue| [[ByteField]] | Return of the bitwise AND operation of two ByteField}}
+
{{TermReturnValue| [[Core.DataTypes.ComplexDataType.ByteField|ByteField]] | Return of the bitwise AND operation of two ByteField}}
  
 
== Properties ==
 
== Properties ==
 
{| {{TableHeader}}
 
{| {{TableHeader}}
 
{{TableRowPropertiesHeader}}
 
{{TableRowPropertiesHeader}}
{{TableRowPropertie1| ByteFieldTerm1 | [[ByteField]] | [[Term]] | - | [1] | Left operand}}
+
{{TableRowPropertie1| ByteFieldTerm1 | [[Core.DataTypes.ComplexDataType.ByteField|ByteField]] | [[Term]] | - | [1] | Left operand}}
{{TableRowPropertie2| ByteFieldTerm2 | [[ByteField]] | [[Term]] | - | [1] | Right operand}}
+
{{TableRowPropertie2| ByteFieldTerm2 | [[Core.DataTypes.ComplexDataType.ByteField|ByteField]] | [[Term]] | - | [1] | Right operand}}
 
|}
 
|}
  
== Examples ==
+
== OTL Examples ==
 
<syntaxhighlight lang="java" enclose="div" style="font-size: medium;">
 
<syntaxhighlight lang="java" enclose="div" style="font-size: medium;">
 +
ByteField result;
  
 +
result = &12 & &34;
 +
//Returns result = &10
 
</syntaxhighlight>
 
</syntaxhighlight>
ByteField result = BitwiseAnd(&12, &34)
+
 
 
== See also ==
 
== See also ==
[[BitwiseOr]] <br/>
+
[[Core.Terms.BitwiseOr|BitwiseOr]] <br/>
[[BitwiseXor]] <br/>
+
[[Core.Terms.BitwiseXor|BitwiseXor]] <br/>
[[BitwiseNot]] <br/>
+
[[Core.Terms.BitwiseNot|BitwiseNot]] <br/>
[[ByteFieldGetSize]] <br/>
+
[[Core.Terms.ByteFieldGetSize|ByteFieldGetSize]] <br/>
[[SubByteField]] <br/>
+
[[Core.Terms.SubByteField|SubByteField]] <br/>
[[GetBit]]
+
[[Core.Terms.GetBit|GetBit]]

Latest revision as of 08:48, 16 February 2016

Classification

Name BitwiseAnd
Short Description Bitwise AND operation two ByteFields
Class Term
Extension OTX Core library
Group ByteField operations
Exceptions -
Checker Rules -
Standard Compliant Yes

OTL Syntax

Value = ByteFieldTerm1 & ByteFieldTerm2

Description

BitwiseAnd is a term, which returns the bitwise AND operation of two ByteFields as a result.

Exclamation.png Important: Please keep in mind that this TermActivity in the form of an activity exists and no text can be entered. According to the respective ActionNode can further properties are added.

Return Value

The Term returns the value, see table below.

Icons Note.png In OTX, Terms are categorized according to its return data type!
Data Type Description
ByteField Return of the bitwise AND operation of two ByteField

Properties

Name Data Type Class Default Cardinality Description
ByteFieldTerm1 ByteField Term - [1] Left operand
ByteFieldTerm2 ByteField Term - [1] Right operand

OTL Examples

ByteField result;

result = &12 & &34;
//Returns result = &10

See also

BitwiseOr
BitwiseXor
BitwiseNot
ByteFieldGetSize
SubByteField
GetBit