how to kill, suspend and activate an other agent

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

how to kill, suspend and activate an other agent

by ihsene :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello,

Is it possible for an agent to kill, suspend and activate  an other agent?

I see that an agent can controle   only its own state? Is it true?

thank you for answering



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

how to kill, suspend and activate an other agent

by ihsene :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message






Hello,

Is it possible for an agent to kill, suspend and activate  an other agent?

I see that an agent can controle   only its own state? Is it true?

thank you for answering


_______________________________________________
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: how to kill, suspend and activate an other agent

by Γιώργος Βαλκανάς :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I don't know if there is a direct way to do it (like calling a function or sth like that), but you could send an ACL message requesting from the other agent to suspend or kill itself. If by "activate" you mean to restart the agent after suspension (and not creating a new agent), then you could also use the ACL messages approach.

Cheers,
George


On Thu, Jul 17, 2008 at 10:44 AM, ines elouedi <ineselouedi@...> wrote:





Hello,

Is it possible for an agent to kill, suspend and activate  an other agent?

I see that an agent can controle   only its own state? Is it true?

thank you for answering


_______________________________________________
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


_______________________________________________
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: how to kill, suspend and activate an other agent

by Caire Giovanni-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.

Hi,

 

You can kill, suspend and activate other agents in two ways:

- General way (this works for whatever agent regardless of whether it lives in the local container or in a remote container): Send a REQUEST to the AMS. In case of agent creation you should REQUEST the AMS to perform the CreateAgent action of the JADEManagementOntology. In case of agent suspension and reactivation you should REQUEST the AMS to perform the Modify action of the FIPAManagementOntology setting the agent status to AMSAgentDescription.SUSPENDED or AMSAgentDescription.ACTIVE.

- In case you want to create/suspend/resume an agent in the local container you can also use the ContainerController as below:

ContainerController cc = getContainerController();

AgentController ac = cc.getAgent(<the agent to suspend>);

ac.suspend();

 

Bye,

 

Giovanni  

 


From: jade-develop-bounces@... [mailto:jade-develop-bounces@...] On Behalf Of ines elouedi
Sent: lunedì 14 luglio 2008 12.33
To: jade-develop@...
Subject: [jade-develop] how to kill, suspend and activate an other agent

 

Hello,

Is it possible for an agent to kill, suspend and activate  an other agent?

I see that an agent can controle   only its own state? Is it true?

thank you for answering

 


_______________________________________________
jade-develop mailing list
jade-develop@...
https://avalon.cselt.it/mailman/listinfo/jade-develop
UNSUBSCRIBE INSTRUCTIONS AT
http://jade.tilab.com/community-mailinglist.htm
LightInTheBox - Buy quality products at wholesale price