18 package customprocessors;
20 import static ca.uqac.lif.cep.Connector.OUTPUT;
22 import java.util.Queue;
24 import ca.uqac.lif.cep.Pullable;
25 import ca.uqac.lif.cep.SynchronousProcessor;
26 import ca.uqac.lif.cep.UtilityMethods;
66 protected boolean compute(Object[] inputs, Queue<Object[]> outputs)
69 Object[] front =
new Object[1];
112 public static void main(String[] args)
115 Pullable p = counter.getPullableOutput(OUTPUT);
116 for (
int i = 0; i < 10; i++)
118 float n = (Float) p.pull();
119 System.out.println(n);
120 UtilityMethods.pause(1000);
This processor simply generates the trace of numbers 0, 1, 2, ...
int m_counterValue
The variable that will keep the current value of the counter.