20 import ca.uqac.lif.cep.Connector;
21 import ca.uqac.lif.cep.Connector.ConnectorException;
22 import ca.uqac.lif.cep.Processor;
23 import ca.uqac.lif.cep.functions.ApplyFunction;
24 import ca.uqac.lif.cep.tmf.QueueSource;
25 import ca.uqac.lif.cep.util.Booleans;
26 import ca.uqac.lif.cep.util.Numbers;
56 public static void main(String[] args)
59 QueueSource source =
new QueueSource();
64 Processor av =
new ApplyFunction(Numbers.absoluteValue);
65 Connector.connect(source, av);
71 Processor neg =
new ApplyFunction(Booleans.not);
72 Connector.connect(av, neg);
77 System.out.println(
"This line will not be reached");
Pipe processors with non-matching event types.
static void main(String[] args)