/** * Section 4.2.1, Page 58 * * It is important to note that a behaviour such as that shown below will prevent * any other behaviour from being executed because its action() method will never return. **/ import jade.core.behaviours.Behaviour; public class OverbearingBehaviour extends Behaviour { public void action() { while (true) { // do something System.out.println("do something"); } } public boolean done() { return true; } }