Subject: SubscribeResponder sendNotifications()
From: Ahluwalia, Amy (Ahluwalia@tpd.tno.nl)
Date: Tue Oct 15 2002 - 19:27:17 MET DST
Could anybody help me out with the following:
After my class that extends the SubscriptionResponder class, has received 2
or more subscriptions. It tries to send a notification message to all of
them, by calling notify() on their Subscription objects.
The global variable notifications of the SubscriptionResponder class, at
this point looks as follows: it contains 2 or more ACLMessage=
Then the state Changes to the SEND_NOTIFICATIONS State, within this state
the sendNotifications() method of the SubscriptionResponder is called.
But instead of sending the different notification messages to the different
agents, the first notification msg ends up being send, several times, to the
first agent, that subscribed.
I haven't got a clue to what I'm doing wrong. After setting some print
statements in the SubscriptionResponder class, it seems that notMsg1~ is
retrieved from the global variable notifications instead of notMsg2, notMsg3
etc,. But why and how, I don't know.
(Note: notMsg1~ = what has become of notMsg1 after calling the line:
ReplySender.adjustReply(myAgent, tmp, tmp);
in which tmp = notMsg1 and tmp = notMsg2 are used)
This archive was generated by hypermail 2a22 : Tue Oct 15 2002 - 19:28:06 MET DST