@@ -0,0 +1,1799 @@
+package examples.hello;%0A%0Aimport jade.core.Agent;%0Aimport jade.core.behaviours.Behaviour;%0Aimport jade.core.behaviours.OneShotBehaviour;%0Aimport jade.core.behaviours.SequentialBehaviour;%0A%0A/**%0A * two sequential Agent examples%0A * output:%0A seq1:first child behaviour%0A seq2:first child behaviour%0A seq1:first child behaviour%0A seq2:second child behaviour%0A seq1:second child behaviour%0A seq2:second child behaviour%0A *%0A */%0Apublic class TwoSequentialAgent extends Agent %7B%0A    protected void setup()%7B%0A        SequentialBehaviour suq1 = new SequentialBehaviour(this);%0A        suq1.addSubBehaviour(new Behaviour() %7B%0A            int step  = 0;%0A            @Override%0A            public void action() %7B%0A                System.out.println(%22seq1:first child behaviour%22);%0A                step++;%0A            %7D%0A%0A            @Override%0A            public boolean done() %7B%0A                return step == 2;%0A            %7D%0A        %7D);%0A        suq1.addSubBehaviour(new OneShotBehaviour() %7B%0A            @Override%0A            public void action() %7B%0A                System.out.println(%22seq1:second child behaviour%22);%0A            %7D%0A        %7D);%0A%0A        SequentialBehaviour seq2 = new SequentialBehaviour(this);%0A        seq2.addSubBehaviour(new OneShotBehaviour() %7B%0A            @Override%0A            public void action() %7B%0A                System.out.println(%22seq2:first child behaviour%22);%0A            %7D%0A        %7D);%0A        seq2.addSubBehaviour(new Behaviour() %7B%0A            int step = 0;%0A            @Override%0A            public void action() %7B%0A                System.out.println(%22seq2:second child behaviour%22);%0A                step++;%0A            %7D%0A%0A            @Override%0A            public boolean done() %7B%0A                return step == 2;%0A            %7D%0A        %7D);%0A%0A        addBehaviour(suq1);%0A        addBehaviour(seq2);%0A    %7D%0A%7D%0A

sequential agent