20 import ca.uqac.lif.cep.Connector;
21 import ca.uqac.lif.cep.signal.Threshold;
22 import ca.uqac.lif.cep.tmf.Fork;
26 public static void main(String[] args)
29 new Object[] {0, 10, 0, -10, 0},
30 new Object[] {20, 3, 20, 3, 20});
31 Fork fork =
new Fork(2);
32 Connector.connect(gs, 1, fork, 0);
33 Threshold persist =
new Threshold(5);
34 Connector.connect(fork, 1, persist, 0);
36 Connector.connect(gs, 0, ps, 0);
37 Connector.connect(fork, 0, ps, 1);
38 Connector.connect(persist, 0, ps, 2);