20 import ca.uqac.lif.cep.Adder;
21 import ca.uqac.lif.cep.Connector;
22 import ca.uqac.lif.cep.Pushable;
23 import ca.uqac.lif.cep.io.Print;
42 public static void main(String[] args)
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");
static void main(String[] args)
Push events into a processor of input arity 2.