Subject: RE: [jade-develop] takeDown runs twice
From: Bellifemine Fabio (Fabio.Bellifemine@TILAB.COM)
Date: Wed Oct 02 2002 - 15:16:20 MET DST
takedown() is called when your agent is going to die.
A way to kill an agent is to call the method doDelete().
Because you are calling doDelete inside the method takeDown(), this method is executed twice.
Solution: just remove the last line of your method.
Regards, Fabio.
-----Original Message-----
From: Cinzia S [mailto:cinzia.s@ntlworld.com]
Sent: 02 October 2002 14:27
To: jade-develop@sharon.cselt.it
Subject: [jade-develop] takeDown runs twice
Is there any encountered problem that causes takeDown to be called twice?
This is my implementation of takeDown:
public void takeDown() {
System.out.println( getLocalName() + " has stopped" );
setEnabledO2ACommunication(false, 0);
deregisterWithDF();
this.doDelete();
}
which seems to be run twice every time I call it.
Thanks
Cinzia
_______________________________________________
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 : Wed Oct 02 2002 - 15:16:29 MET DST