|
View:
New views
5 Messages
—
Rating Filter:
Alert me
|
|
|
Re: "myAgent.doDelete",Hi Ines!
If you call the doDelete() method of the agent, then the takeDown() method is scheduled for execution. The takeDown() method is responsible for "manual garbage collection", goodbye messages, etc. You can override it in any way you think it is necessary. After the execution of the takeDown() method the agent dies. So, there is no problem with your code below. It is a normal way of execution. The doDelete() method is not a "break" in the agent's lifecycle. Ok? :) Daniel > Hello, > when an agent executes "myAgent.doDelete", I've remarked that the instructions after "myAgent.doDelete" are executed . > for example in this code: > > myAgent.doDelete; > System.out.println("deleted"); > > the deleted message is shown. Is it normal or have I made some mistakes? > thnak you. _______________________________________________ jade-develop mailing list jade-develop@... https://avalon.cselt.it/mailman/listinfo/jade-develop UNSUBSCRIBE INSTRUCTIONS AT http://jade.tilab.com/community-mailinglist.htm |
|
|
|
"myAgent.doDelete",
_______________________________________________ jade-develop mailing list jade-develop@... https://avalon.cselt.it/mailman/listinfo/jade-develop UNSUBSCRIBE INSTRUCTIONS AT http://jade.tilab.com/community-mailinglist.htm |
|
|
|
Re: "myAgent.doDelete",
Hello Ines,
this is the normal behaviour, since the doDelete method only changes the agent life cycle state. The new state is taken into account when the execution of your method finalises, then no other behaviour is executed. Jordi. En/na ines elouedi ha escrit:
-- ............................................................. :: Jordi Cucurull Juan :: Phone: +34 93 581 3577 :: (jcucurull@...) Departament d'Enginyeria de la Informacio i les Comunicacions Universitat Autonoma de Barcelona - 08193 Bellaterra, Spain ............................................................. _______________________________________________ jade-develop mailing list jade-develop@... https://avalon.cselt.it/mailman/listinfo/jade-develop UNSUBSCRIBE INSTRUCTIONS AT http://jade.tilab.com/community-mailinglist.htm |
|
|
|
Re: "myAgent.doDelete",Hi. This is the normal behaviour. When you call the doDelete() method a flag is set which instructs the container to destroy the agent when it is done performing it's current task. Your agent will therefore complete the execution of the current behaviour before it is destroyed. Hope that answered your question. Regards, Jaran On 7/17/08, ines elouedi <ineselouedi@...> wrote:
_______________________________________________ jade-develop mailing list jade-develop@... https://avalon.cselt.it/mailman/listinfo/jade-develop UNSUBSCRIBE INSTRUCTIONS AT http://jade.tilab.com/community-mailinglist.htm |
|
|
|
Re: "myAgent.doDelete",Jordi. En/na Jaran Nilsen ha escrit:
-- ............................................................. :: Jordi Cucurull Juan :: Phone: +34 93 581 3577 :: (jcucurull@...) Departament d'Enginyeria de la Informacio i les Comunicacions Universitat Autonoma de Barcelona - 08193 Bellaterra, Spain ............................................................. _______________________________________________ jade-develop mailing list jade-develop@... https://avalon.cselt.it/mailman/listinfo/jade-develop UNSUBSCRIBE INSTRUCTIONS AT http://jade.tilab.com/community-mailinglist.htm |
| Free Forum Powered by Nabble | Forum Help |