Subject: Re: Fw: [jade-develop] containers
From: Alexander Osherenko (a.ocherenko@gmx.de)
Date: Sat Aug 17 2002 - 12:33:34 MET DST
I don't know if it is important, but I found out during debugging JADE, that
the jade.jar-file and the sources are not the same and I had to copy some
files in the JADE class directory from the jade.jar-file. I'm not sure what
classes I needed something like ..Impl_Stub classes.
----- Original Message -----
From: "John J. Mikucki" <jjm7570@cs.rit.edu>
To: "Alexander Osherenko" <a.ocherenko@gmx.de>
Cc: "JADE" <jade-develop@sharon.cselt.it>
Sent: Wednesday, August 14, 2002 3:25 PM
Subject: Re: Fw: [jade-develop] containers
> Thus spake Alexander Osherenko (a.ocherenko@gmx.de):
>
> > Is it possible to get a list of containers that I can check whether
> > a container is available or not and add new agents to the existing
> > container?
>
>
> I think you want a QueryPlatformLocationsAction. It lives in the
> JADEAgentManagement namespace in 2.6. Something like the following
> code would kick things off...
>
> ACLMessage request = new ACLMessage(ACLMessage.REQUEST);
> request.clearAllReceiver();
> request.addReceiver(a.getAMS());
> request.setLanguage(FIPANames.ContentLanguage.FIPA_SL0);
> request.setOntology(MobilityOntology.NAME);
> request.setProtocol("fipa-request");
> // creates the content of the ACLMessage
>
> try {
> Action action = new Action();
> action.setActor(a.getAMS());
> action.setAction(new QueryPlatformLocationsAction());
> cm.fillContent(request, action);
> a.Send(request);
> } catch (Exception e) {
> System.err.println("RHL had exception: ");
> e.printStackTrace();
> }
>
> Of course, if someone knows a better way, I'm all ears.
>
> John
>
> --
> Avoision, n: Avoidance, as practiced in 'Joisey.
> _______________________________________________
> jade-develop mailing list
> jade-develop@sharon.cselt.it
> http://sharon.cselt.it/mailman/listinfo/jade-develop
> UNSUBSCRIBE INSTRUCTIONS AT http://jade.cselt.it/mailing.htm#unsubscribe
>
This archive was generated by hypermail 2a22 : Sat Aug 17 2002 - 12:25:15 MET DST