Subject: question
From: Katia Abi Fadel (kabifade@enst.fr)
Date: Tue Sep 17 2002 - 14:46:58 MET DST
Hi,
I'm trying to create agents that are able to communicate between
them. Just like the testagent examples created by LEAP, I want thanks to
the gui interface to be able to choose whether I want to send a message,
and when received to reply or not.
So I defined 2 classes one to send messages in which I define the
message as follows:
ACLMessage msg = new
ACLMessage(ACLMessage.INFORM);
msg.setContent("COURS");
This class is working properly.
One to reply with a message, so I use:
MessageTemplate m1 =
MessageTemplate.MatchPerformative(ACLMessage.INFORM);
ACLMessage m = receive(m1);
if (m != null)
{................}
However m is always null. Could you please tell me what is wrong?!
Thank you.
Katia.
This archive was generated by hypermail 2a22 : Tue Sep 17 2002 - 14:45:57 MET DST