RE: [jade-develop] ACLMessage and OntoACLmessage


Subject: RE: [jade-develop] ACLMessage and OntoACLmessage
From: Caire Giovanni (Giovanni.Caire@TILAB.COM)
Date: Fri Dec 06 2002 - 11:10:20 MET


Hi,

Sending an ACLMessage means performing an action (more precisely a communicative action) -->
Similarly to when agent A REQUESTS agent B to (e.g.) Sell a Book, agent A can request agent B to INFORM agent C that (e.g.) today is raining.
In the first case using the Jade support for content languages and ontologies there would be a Sell class describing the Sell action.
For the second case we already have a class describing the INFORM action: the ACLMessage class!
Unfortunately, in order to use ACLMessage within the CL and ontologies support, ACLMessage should extend AgentAction (it does not because we don't want to link the core jade classes to the ontologies support).
At the end of the day jade.content.OntoACLMessage is a class that extends ACLMessage and implements AgentAction --> it can be handled by the jade support for CL and ontologies.
Given an ACLMessage it is possible to convert it into an OntoACLMessage using the wrap() method.

So for example you can do something like that:
ACLMessage inform = new ACLMessage(ACLMessage.INFORM);
inform.setSender(B);
inform.addReceiver(C);
inform.setLanguage("Spoken english");
inform.setContent("Today is raining");

Action act = new Action();
act.setActor(B);
act.setAction(OntoACLMessage.wrap(inform));

ACLMessage request = new ACLMessage(ACLMessage.REQUEST);
request.setSender(A);
request.addReceiver(B);
request.setOntology(BasicOntology.getIntance().getName());
request.setLanguage("FIPA-SL");
getContentManager().fillContent(request, act);
  
Note that a similar thing happens with the AID and OntoAID classes.

Bye

Giovanni

-----Original Message-----
From: dalpasa [mailto:dalpasa@entelchile.net]
Sent: giovedì 5 dicembre 2002 17.56
To: Jade-Develop
Subject: [jade-develop] ACLMessage and OntoACLmessage

What's the difference between and ACLMesage and an Ontological ACLMesage ?

Thnks in advance,

Denis
_______________________________________________
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 : Fri Dec 06 2002 - 11:10:24 MET