BoolArithmetic

MLModule
author MeVis Medical Solutions AG
package MeVisLab/Standard
dll MLBasicModules
definition mlBasicModules.def
keywords bit, operation, negation, boolean

Purpose

This module computes simple boolean operations.

Usage

Select the desired operation and mark the boolean input fields.

Details

Depending on the given input values, corresponding boolean output values are being computed.

The following table gives an overview over the given boolean operations:

Operation Input Bool A Input Bool B Output Bool C
Identity A A
Negation A -A
And A B A and B
Or A B A or B
Xor A B A xor B
Equal A B A == B
Implication A B A –> B

Windows

Default Panel

../../../Modules/ML/MLBasicModules/mhelp/Images/Screenshots/BoolArithmetic._default.png

Parameter Fields

Field Index

Bool !C: Bool
Bool A: Bool
Bool B: Bool
Bool C: Bool
Changed to false: []: Trigger
Changed to true: []: Trigger
Int. Value: Integer
Operation: Enum

Visible Fields

Bool A

name: inputBool1, type: Bool, default: FALSE

Sets the first input Boolean value.

Bool B

name: inputBool2, type: Bool, default: FALSE

Sets the second input Boolean value.

Bool C

name: outputBool, type: Bool, persistent: no

Shows the result of the Boolean operation.

Bool !C

name: negatedOutputBool, type: Bool, persistent: no

Shows the inverse of the result of the Boolean operation.

Int. Value

name: outputInt, type: Integer, persistent: no

Shows the result of the Boolean operation as an integer.

0 means false and 1 means true.

Operation

name: operation, type: Enum, default: Identity

Defines the Boolean operation applied to Bool A (and optionally Bool B).

Values:

Title Name
Identity Identity
Negation Negation
And And
Or Or
Xor Xor
Equal Equal
Implication Implication

Changed to true: []

name: outputChangedToTrue, type: Trigger, persistent: no

This field is touched when the output value changes from false to true. You can connect this to other notifications fields.

Changed to false: []

name: outputChangedToFalse, type: Trigger, persistent: no

This field is touched when the output value changes from true to false. You can connect this to other notifications fields.