20 import ca.uqac.lif.cep.tmf.CountDecimate;
21 import ca.uqac.lif.cep.tmf.QueueSource;
31 public static void main(String[] args)
34 QueueSource source =
new QueueSource().loop(
false);
35 source.setEvents(0, 1, 2, 3);
36 CountDecimate decim =
new CountDecimate(2);
37 System.out.println(
"ID of source: " + source.getId());
38 System.out.println(
"ID of decim: " + decim.getId());
Example showing how to access the unique ID of a processor.