|
View:
New views
4 Messages
—
Rating Filter:
Alert me
|
|
|
how to kill, suspend and activate an other agent
_______________________________________________ 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
_______________________________________________ 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 agentI 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:
_______________________________________________ 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 agentHi, 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
_______________________________________________ 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 |