Dina Shehada
2014-05-18 12:44:15 UTC
Hello,
I am very new to jade and I've been searching the resources all over for an answer hopefully you'll be able to help me.
I want to create one agent that will migrate from container to another and all through code I keep trying creating agent through codes such as,
// Start the Main Container
Profile p = new ProfileImpl();
ContainerController mainController = Runtime.instance().createMainContainer(p);
// Create and start your agents
AgentController ac = mainController.createNewAgent("a1", "firstAgent.HelloAgent", null);
ac.start();
ac = mainController.createNewAgent("a2", "firstAgent.HelloAgent", null);
ac.start();
But the created agent are not visible any where and they don't run I keep getting the GUI (because I set the Run Configuration as -gui) which shows the main container along with the AMS/DF/.. Only, can you please let me know how to create agents and containers through the code and how to properly run it and make migrate
I really need your help!
Regards
Dina
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://avalon.cselt.it/pipermail/jade-develop/attachments/20140518/a9982390/attachment.html>
I am very new to jade and I've been searching the resources all over for an answer hopefully you'll be able to help me.
I want to create one agent that will migrate from container to another and all through code I keep trying creating agent through codes such as,
// Start the Main Container
Profile p = new ProfileImpl();
ContainerController mainController = Runtime.instance().createMainContainer(p);
// Create and start your agents
AgentController ac = mainController.createNewAgent("a1", "firstAgent.HelloAgent", null);
ac.start();
ac = mainController.createNewAgent("a2", "firstAgent.HelloAgent", null);
ac.start();
But the created agent are not visible any where and they don't run I keep getting the GUI (because I set the Run Configuration as -gui) which shows the main container along with the AMS/DF/.. Only, can you please let me know how to create agents and containers through the code and how to properly run it and make migrate
I really need your help!
Regards
Dina
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://avalon.cselt.it/pipermail/jade-develop/attachments/20140518/a9982390/attachment.html>