public static void main(String[] args) {
// TODO Auto-generated method stub
try {
//jade.core.Runtime rt = jade.core.Runtime.instance();
Runtime rt = Runtime.instance();
rt.setCloseVM(true);
ProfileImpl platform2 = new ProfileImpl("192.168.1.2", 1099, "Admin-9e046ead5",false);
//Profile pMain = new ProfileImpl("192.168.1.2", 1099, "Admin-9e046ead5");
ContainerController mc = rt.createMainContainer(platform2);
Object[] argg = new Object[1];
argg[0] = mc;
AgentController custom_ag1 = mc.createNewAgent("AgentReponse", "agent_ressource.AgentReponse",argg);
custom_ag1.start();
}
catch (Exception e) {
e.printStackTrace();
}
}
Partager