20 import ca.uqac.lif.cep.Connector;
21 import ca.uqac.lif.cep.Doubler;
22 import ca.uqac.lif.cep.Pushable;
23 import ca.uqac.lif.cep.UtilityMethods;
24 import ca.uqac.lif.cep.io.Print;
46 public static void main (String[] args)
49 Doubler doubler =
new Doubler();
53 Print print =
new Print();
58 Connector.connect(doubler, print);
61 Pushable p = doubler.getPushableInput();
62 for (
int i = 0; i < 8; i++)
66 UtilityMethods.pause(1000);
Pipe processors together using the Connector object.
static void main(String[] args)