20 import ca.uqac.lif.cep.Connector;
21 import ca.uqac.lif.cep.Pushable;
22 import ca.uqac.lif.cep.functions.Cumulate;
23 import ca.uqac.lif.cep.functions.CumulativeFunction;
24 import ca.uqac.lif.cep.io.Print;
25 import ca.uqac.lif.cep.tmf.Window;
26 import ca.uqac.lif.cep.util.Numbers;
36 public static void main(String[] args)
40 Window w =
new Window(
new Cumulate(
41 new CumulativeFunction<Number>(Numbers.addition)), 3);
42 Connector.connect(w,
new Print());
43 Pushable p = w.getPushableInput();
45 p.push(3).push(1).push(4).push(1).push(6);
49 p.push(2).push(7).push(1).push(8).push(3);
static void main(String[] args)
Usage of a processor's reset() method.