...
There are the following multiplexing rules:
- 1 to 1
- 1 to many
- Many to 1
Rule: 1 to 1
This rule means that the multiplexer gets one message from the first input port and one message from the second input port, joins them into a single message, and transfers it to the output. This procedure is repeated while there are available messages in both input slots.
...
HTML |
---|
<center> <img src="/wiki/download/attachments/16126399/multiplexer_element_1toMany.png"/> </center> |
Also see the Find Substrings at Sequences, Search for TFBS examples with Multiplexer element.
As you can see the conditions are the same as in the first "1 to 1" case, described above:
- As on the first image there are elements A, B, C, and the Multiplexer.
- A and B are data readers.
- A gets three data objects as input. These objects are denoted as I, II, and III. A has two slots.
- B gets two data objects as input. These objects are denoted as IV and V. B has two slots.
- C gets messages in the workflow from B. It has one output slot.
- The Multiplexer element receives three messages from A and two messages from C.
However, the multiplexing is done so that each message from A is concatenated from each message from C. As a result the following messages are produced:
- "Message 1" + "Message 6" = "Message 8"
- "Message 1" + "Message 7" = "Message 9"
- "Message 2" + "Message 6" = "Message 10"
- "Message 2" + "Message 7" = "Message 11"
- "Message 3" + "Message 6" = "Message 12"
- "Message 3" + "Message 7" = "Message 13"
Parameters in GUI
Parameter | Description | Default value |
---|---|---|
Multiplexing ruleHow to multiplex the input data flows. | Available values are:
| 1 to 1 |
If empty input | Specifies how to multiplex the data if one of input ports produces no data. It can be used for 1 to 1 multiplexing rule. Available values are:
| Fill by empty values |
See the detailed description of the values above. | 1 to 1 |
Parameters in Workflow File
Type: multiplexer
Parameter | Parameter in the GUI | Type |
---|---|---|
multiplexing-rule | Multiplexing rule | string |
empty-input-action | If empty input | string |
Input/Output Ports
The Multiplexer has ports but has not slots, because its use the whole data flow.
The element has 2 input port:
Name in GUI: First input data flow
Name in Workflow File: input-data-1
Name in GUI:Second input data flow
Name in Workflow File: input-data-2
The element has 1 output port:
Name in GUI: Multiplexed output data flow
Name in Workflow File: output-data
Samples
Also see the Find Substrings at Sequences, Search for TFBS examples with Multiplexer element.