Add (new FeedbackLoop () { public void Init () { SetDelay (2); SetJoiner (WEIGHTED_ROUND_ROBIN (0,1)); SetBody (new Filter () { public void InitIO () { input = new Channel (Integer.TYPE); output = new Channel (Integer.TYPE); }  public void Work () { output.PushInt (input.PeekInt (0) + input.PeekInt (1)); input.PopInt (); } }); SetSplitter (DUPLICATE ()); }  public void InitPath (int index, Channel path) { path.PushInt(index); } }); Add (new PrintInt ());
SetDelay (2); SetJoiner (WEIGHTED_ROUND_ROBIN (0,1)); SetBody (new Filter () { public void InitIO () { input = new Channel (Integer.TYPE); output = new Channel (Integer.TYPE); }  public void Work () { output.PushInt (input.PeekInt (0) + input.PeekInt (1)); input.PopInt (); } }); SetLoop (new PrintInt()); SetSplitter (DUPLICATE ());
    public void Init ()    {        Add (new FeedbackLoop ()        {            public void Init ()            {                SetDelay (2);                SetJoiner (WEIGHTED_ROUND_ROBIN (0,1));                SetBody (new Filter ()                {                    public void InitIO ()                    {                        input = new Channel (Integer.TYPE);                        output = new Channel (Integer.TYPE);                    }                    public void Work ()                    {                        output.PushInt (input.PeekInt (0) + input.PeekInt (1));                        input.PopInt ();                    }                });                SetSplitter (DUPLICATE ());            }            public void InitPath (int index, Channel path)            {                path.PushInt(index);            }        });        Add (new PrintInt ());    }