20 import ca.uqac.lif.cep.GroupProcessor;
21 import ca.uqac.lif.cep.tmf.Passthrough;
32 public static void main(String[] args)
35 MyGroup g1 =
new MyGroup();
36 System.out.println(
"ID of g1: " + g1.getId());
37 System.out.println(
"ID inside g1: " + g1.getInstance().getId());
41 MyGroup g2 =
new MyGroup();
42 System.out.println(
"ID of g2: " + g2.getId());
43 System.out.println(
"ID inside g2: " + g2.getInstance().getId());
48 public static class MyGroup
extends GroupProcessor
52 protected Passthrough pt;
59 pt =
new Passthrough();
61 associateInput(0, pt, 0);
62 associateOutput(0, pt, 0);
67 public Passthrough getInstance()
static void main(String[] args)
Example showing how the IDs of processors behave when multiple instances are created.