/***************************************************************** Simple0.java: First try at a "Hello World" Agent *****************************************************************/ import jade.core.Agent; import jade.core.behaviours.*; public class Simple0 extends Agent { protected void setup() { addBehaviour( new B1( this ) ); } class B1 extends SimpleBehaviour { public B1(Agent a) { super(a); } public void action() { System.out.println( "Hello World! My name is " + myAgent.getLocalName() ); } private boolean finished = false; public boolean done() { return finished; } } //End class B1 }