I'm just starting with JADE agent based modeling. My hello world example looks like this -
public class HelloWorldAgent extends Agent {
protected void setup() {
System.out.println("Hello World! My AID is "+this.getAID());
}
}
And I call this outside like this -
public class Main {
public static void main(String[] args) {
HelloWorldAgent helloWorldAgent = new HelloWorldAgent();
helloWorldAgent.setup();
}
}
And the output I'm seeing is -
Hello World! My AID is null
Now, my question is how do I set AID as there is only get method and no "set" method. As it's not available, I suspect there AID is something that's automatically assigned. Is it so? If yes, how do I make sure that Agent gets an AID? Thanks.