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