"myAgent.doDelete",

View: New views
5 Messages — Rating Filter:   Alert me  

Re: "myAgent.doDelete",

by Kovacs Daniel :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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",

by ihsene :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

 

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

Re: "myAgent.doDelete",

by Jordi Cucurull Juan-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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:

 

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

-- 


.............................................................
:: 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

signature.asc (260 bytes) Download Attachment

Re: "myAgent.doDelete",

by Jaran Nilsen :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.

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:

 

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


_______________________________________________
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",

by Jordi Cucurull Juan-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.
It seems that Ines will have a myriad of responses to choose from. ;-)

Jordi.

En/na Jaran Nilsen ha escrit:

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:

 

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


_______________________________________________ jade-develop mailing list jade-develop@... https://avalon.cselt.it/mailman/listinfo/jade-develop UNSUBSCRIBE INSTRUCTIONS AT http://jade.tilab.com/community-mailinglist.htm

-- 


.............................................................
:: 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

signature.asc (260 bytes) Download Attachment
LightInTheBox - Buy quality products at wholesale price