Re: [jade-develop] AchieveREResponder in FSMBehaviour


Subject: Re: [jade-develop] AchieveREResponder in FSMBehaviour
From: Cinzia S (cinzia.s@ntlworld.com)
Date: Mon Sep 02 2002 - 17:01:41 MET DST


Thanks for your help Giovanni,

it had to do with initialising the message passed to the prepare-request
handler at the wrong time and thus causing it to be null. As the
initialisation of the message depended on the completion of the STATE_2 of
the outer FSMBehaviour, by trying to initialise the message within the
handler's constructor caused a null value as at instantiation time (of the
registered states) STATE_2's action() was not yet called.....

Bye
Cinzia

----- Original Message -----
From: "Caire Giovanni" <Giovanni.Caire@TILAB.COM>
To: "Cinzia S" <cinzia.s@ntlworld.com>
Sent: Monday, September 02, 2002 1:19 PM
Subject: RE: [jade-develop] AchieveREResponder in FSMBehaviour

Nothing else.

Just check that
- The Vector you prepare is not empty
- The Vector is put in the right place of the DataStore of the
AchieveREInitiator (see Javadoc).

Note that, if by chance you prepare the requests Vector and put it in the
DataStore within the constructor of the behaviour that you register as the
prepare-requests state, things do not work as at that time the DataStore of
the prepare-requests behaviour is different from the DataStore of the
AchieveREInitiator.

Bye

Giovanni

-----Original Message-----
From: Cinzia S [mailto:cinzia.s@ntlworld.com]
Sent: luned́ 2 settembre 2002 14.12
To: Caire Giovanni
Subject: Re: [jade-develop] AchieveREResponder in FSMBehaviour

I am registering a behaviour for the prepare requests state, in which I add
a vector of ACLMessage into the data store, but I'm not overriding
prepareRequests(). The only method my AchiveREInitiator overrides in the
onEnd().

Should I do something else?
Thanks

----- Original Message -----
From: "Caire Giovanni" <Giovanni.Caire@TILAB.COM>
To: "Cinzia S" <cinzia.s@ntlworld.com>
Sent: Monday, September 02, 2002 12:44 PM
Subject: RE: [jade-develop] AchieveREResponder in FSMBehaviour

Hi,

The AchieveREInitiator terminates
- just after the send_requests state if NO request message was sent
- after the handle-all-result-notifications state otherwise
So it seems that no request message is sent.
Do you override the prepareRequests() method?
Do you register a behaviour in the prepare-requests state?

Bye

Giovanni

====================================================================
CONFIDENTIALITY NOTICE
This message and its attachments are addressed solely to the persons
above and may contain confidential information. If you have received
the message in error, be informed that any use of the content hereof
is prohibited. Please return it immediately to the sender and delete
the message. Should you have any questions, please contact us by
replying to MailAdmin@tilab.com. Thank you
====================================================================



This archive was generated by hypermail 2a22 : Mon Sep 02 2002 - 16:56:04 MET DST