Push events into a processor of input arity 2.
More...
|
static void | main (String[] args) |
|
Push events into a processor of input arity 2.
The chain of processors in this example can be represented graphically as:
The expected output of this program is:
0,2,4,6,8,10,12,14,
- See also
- PipingUnaryPush
- Author
- Sylvain Hallé Easy
Definition at line 40 of file BinaryPush.java.
◆ main()
static void basic.BinaryPush.main |
( |
String [] |
args | ) |
|
|
static |
We create an instance of the adder processor
Definition at line 42 of file BinaryPush.java.
45 Adder add =
new Adder();
49 Print print =
new Print().setSeparator(
"\n");
52 Connector.connect(add, print);
58 Pushable p0 = add.getPushableInput(0);
59 Pushable p1 = add.getPushableInput(1);
65 System.out.println(
"This is the first printed line");
75 System.out.println(
"This is the third printed line");
The documentation for this class was generated from the following file: