Package jade.core.management
Class AgentManagementProxy
- java.lang.Object
-
- jade.core.SliceProxy
-
- jade.core.management.AgentManagementProxy
-
- All Implemented Interfaces:
AgentManagementSlice,Service.Slice,Serializable,Serializable
public class AgentManagementProxy extends SliceProxy implements AgentManagementSlice
The remote proxy for the JADE kernel-level service managing the basic agent life cycle: creation, destruction, suspension and resumption.- Author:
- Giovanni Rimassa - FRAMeTech s.r.l.
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from interface jade.core.management.AgentManagementSlice
ADD_TOOL, CREATE_AND_START, CREATE_ONLY, H_BORNAGENT, H_CHANGEAGENTSTATE, H_CREATEAGENT, H_DEADAGENT, H_EXITCONTAINER, H_KILLAGENT, H_RESUMEDAGENT, H_SUSPENDEDAGENT, INFORM_CREATED, INFORM_KILLED, INFORM_STATE_CHANGED, KILL_CONTAINER, NAME, REMOVE_TOOL, REQUEST_CREATE, REQUEST_KILL, REQUEST_STATE_CHANGE, SHUTDOWN_PLATFORM
-
-
Constructor Summary
Constructors Constructor Description AgentManagementProxy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidbornAgent(AID name, ContainerID cid, Command sourceCmd)voidchangeAgentState(AID agentID, int newState)voidcreateAgent(AID agentID, String className, Object[] arguments, JADEPrincipal owner, Credentials initialCredentials, boolean startIt, Command sourceCmd)voiddeadAgent(AID name, Command sourceCmd)voidexitContainer()voidkillAgent(AID agentID, Command sourceCmd)voidresumedAgent(AID name)voidsuspendedAgent(AID name)-
Methods inherited from class jade.core.SliceProxy
getNode, getService, serve, setNode
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface jade.core.Service.Slice
getNode, getService, serve
-
-
-
-
Method Detail
-
createAgent
public void createAgent(AID agentID, String className, Object[] arguments, JADEPrincipal owner, Credentials initialCredentials, boolean startIt, Command sourceCmd) throws IMTPException, NotFoundException, NameClashException, JADESecurityException
- Specified by:
createAgentin interfaceAgentManagementSlice- Throws:
IMTPExceptionNotFoundExceptionNameClashExceptionJADESecurityException
-
killAgent
public void killAgent(AID agentID, Command sourceCmd) throws IMTPException, NotFoundException
- Specified by:
killAgentin interfaceAgentManagementSlice- Throws:
IMTPExceptionNotFoundException
-
changeAgentState
public void changeAgentState(AID agentID, int newState) throws IMTPException, NotFoundException
- Specified by:
changeAgentStatein interfaceAgentManagementSlice- Throws:
IMTPExceptionNotFoundException
-
bornAgent
public void bornAgent(AID name, ContainerID cid, Command sourceCmd) throws IMTPException, NameClashException, NotFoundException, JADESecurityException
- Specified by:
bornAgentin interfaceAgentManagementSlice- Throws:
IMTPExceptionNameClashExceptionNotFoundExceptionJADESecurityException
-
deadAgent
public void deadAgent(AID name, Command sourceCmd) throws IMTPException, NotFoundException
- Specified by:
deadAgentin interfaceAgentManagementSlice- Throws:
IMTPExceptionNotFoundException
-
suspendedAgent
public void suspendedAgent(AID name) throws IMTPException, NotFoundException
- Specified by:
suspendedAgentin interfaceAgentManagementSlice- Throws:
IMTPExceptionNotFoundException
-
resumedAgent
public void resumedAgent(AID name) throws IMTPException, NotFoundException
- Specified by:
resumedAgentin interfaceAgentManagementSlice- Throws:
IMTPExceptionNotFoundException
-
exitContainer
public void exitContainer() throws IMTPException, NotFoundException- Specified by:
exitContainerin interfaceAgentManagementSlice- Throws:
IMTPExceptionNotFoundException
-
-