Full Library / Defining_Flow / Switching / Boolean_Trigger
Block Name: Boolean_Trigger
- public class Boolean Trigger
- extends TypedAtomicActor
- This block has two input ports, the input port for incoming data tokens, and the control port to trigger the output data path. The switch_trigger routes input tokens to the output port. The block operation is defined by the Port_Arrival_Order parameter. When the control port fires, a control token is available at the control input, and if an input token is available on the input port, then that token is read, and sent to the output port based on the trigger token. Ports can be over-ridden, based on the following description of the port order operator. The port order operator is a string-valued attribute that defaults to "Input_or_Control_First". If set to "Input_First" mode, then 'input' port sets flag, waits for next 'control' port. If set to "Control_First", then 'control' port sets flag, waits for next 'input' port. If set to "Input_or_Control_First", then similar to AND function, order not important. It should be noted that "Input_First" or "Control_First" waits for the "next" input after the first is satisfied.
- Version:
- 1.01, 1 Apr 2003
input
public TypedIOPort input
- Input port for data tokens.
control
public TypedIOPort control
- Input port for control tokens, which selects the output port. The type is any type.
output
public TypedIOPort output
- Output port, type same as input.
Port_Arrival_Order
public StringAttribute Port_Arrival_Order
- The port order operator. This is a string-valued attribute that defaults to "Input_or_Control_First" If set to "Input_First" mode, then 'input' port sets flag, waits for next 'control' port. If set to "Control_First", then 'control' port sets flag, waits for next 'input' port. If set to "Input_or_Control_First", then similar to AND function, order not important. It should be noted that "Input_First" or "Control_First" waits for the "next" input after the first is satisfied.
Created with the Personal Edition of HelpNDoc: Write EPub books for the iPad