package gui.ex01_defaultGUI;
import madkit.kernel.Agent;
import madkit.kernel.Madkit;
public class DefaultGUIAgent extends Agent {
@Override
protected void activate() {
getLogger().info(
"I have a default GUI which is automatically created for me \n because there was \n " + "--launchAgents " + getClass().getName() + ",true \n on the command line");
pause(2000);
}
@Override
protected void live() {
getLogger().info("I now launch two hello world agents:\n one with a GUI and one without");
pause(1000);
launchAgent(new helloworld.ex01.HelloWorldAgent());
launchAgent(new helloworld.ex01.HelloWorldAgent(), true);
pause(2000);
}
public static void main(String[] argss) {
String[] args = { "--launchAgents", DefaultGUIAgent.class.getName() + ",true" };
Madkit.main(args);
}
}