BooleanSwitch

Parent Previous Next

Full Library / Math Operator / Boolean / BooleanSwitch
Block Name: BooleanSwitch

Code File Location: VisualSim/actor/lib/BooleanSwitch

Block Overview

A type polymorphic switch with boolean valued control. In an iteration, if an input token is available at the control input, that token is read, and its value is noted. Its value specifies the input port that should be read next. If the control input is true, then if an input token is available on the input port, then it is is read and sent to the trueOutput. Likewise with a false input and the falseOutput port. Because tokens are immutable, the same Token is sent to the output, rather than a copy. The input port may receive Tokens of any type.

If no token has ever been received on the control port, then falseOutput is assumed to be the one to receive data.

Field Detail

control

public TypedIOPort control


input

public TypedIOPort input


trueOutput

public TypedIOPort trueOutput


falseOutput

public TypedIOPort falseOutput


Created with the Personal Edition of HelpNDoc: Free Qt Help documentation generator