Examples of changeAgentState()


Examples of jade.core.management.AgentManagementSlice.changeAgentState()

      public void suspendAgent(AID id) throws Throwable {
        // Do as if it was a remote call from the main to allow
        // security checks to take place if needed
        jade.core.management.AgentManagementSlice target = (jade.core.management.AgentManagementSlice) getProxyToLocalSlice(jade.core.management.AgentManagementSlice.NAME);
        // FIXME: set Principal and Credentials
        target.changeAgentState(id, Agent.AP_SUSPENDED);
      }

      public void activateAgent(AID id) throws Throwable {
        // Do as if it was a remote call from the main to allow
        // security checks to take place if needed
View Full Code Here

Examples of jade.core.management.AgentManagementSlice.changeAgentState()

      public void activateAgent(AID id) throws Throwable {
        // Do as if it was a remote call from the main to allow
        // security checks to take place if needed
        jade.core.management.AgentManagementSlice target = (jade.core.management.AgentManagementSlice) getProxyToLocalSlice(jade.core.management.AgentManagementSlice.NAME);
        // FIXME: set Principal and Credentials
        target.changeAgentState(id, Agent.AP_ACTIVE);
      }

      public void killAgent(AID id) throws Throwable {
        // Do as if it was a remote call from the main to allow
        // security checks to take place if needed
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.