20 import ca.uqac.lif.cep.Doubler;
21 import ca.uqac.lif.cep.Pullable;
22 import ca.uqac.lif.cep.tmf.QueueSource;
45 public static void main (String[] args)
48 QueueSource source =
new QueueSource();
49 source.setEvents(1, 2, 3, 4, 5, 6);
53 Doubler doubler =
new Doubler();
58 Pullable p = doubler.getPullableOutput();
59 System.out.println(
"The event is: " + p.pull());
Instantiates two processors, but forgets to connect them.