Package jade.core
Interface BackEnd
-
- All Known Implementing Classes:
BackEndContainer,BackEndStub
public interface BackEnd- Author:
- Giovanni Caire - TILAB
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringbornAgent(String name)Notify the BackEnd container that a new agent is born.voiddeadAgent(String name)Notify the BackEnd container that an agent has died.voidmessageOut(ACLMessage msg, String sender)Pass an ACLMessage to the BackEnd for dispatching.voidresumedAgent(String name)Notify the BackEnd container that an agent has resumed.ObjectserviceInvokation(String actor, String serviceName, String methodName, Object[] methodParams)Pass a service helper method invocation request to the BackEndvoidsuspendedAgent(String name)Notify the BackEnd container that an agent has suspended.
-
-
-
Method Detail
-
bornAgent
String bornAgent(String name) throws IMTPException, JADESecurityException
Notify the BackEnd container that a new agent is born.- Parameters:
name- The name of the new agent.- Returns:
- The name actually assigned to the newly born agent.
- Throws:
IMTPExceptionJADESecurityException
-
deadAgent
void deadAgent(String name) throws IMTPException
Notify the BackEnd container that an agent has died. Note that this does not throw NotFoundException as, if the BackEnd does not contain an AgentImage for the deadAgent it just ignores the call.- Parameters:
name- The name of the dead agent.- Throws:
IMTPException
-
suspendedAgent
void suspendedAgent(String name) throws NotFoundException, IMTPException
Notify the BackEnd container that an agent has suspended.- Parameters:
name- The name of the suspended agent.- Throws:
NotFoundExceptionIMTPException
-
resumedAgent
void resumedAgent(String name) throws NotFoundException, IMTPException
Notify the BackEnd container that an agent has resumed.- Parameters:
name- The name of the resumed agent.- Throws:
NotFoundExceptionIMTPException
-
messageOut
void messageOut(ACLMessage msg, String sender) throws NotFoundException, IMTPException
Pass an ACLMessage to the BackEnd for dispatching.- Parameters:
msg- The message to be dispatched.sender- The name of the sender agent.- Throws:
NotFoundExceptionIMTPException
-
serviceInvokation
Object serviceInvokation(String actor, String serviceName, String methodName, Object[] methodParams) throws NotFoundException, ServiceException, IMTPException
Pass a service helper method invocation request to the BackEnd- Parameters:
actor- The name of the agent that invoked the methodserviceName- The name of the servicemethodName- The name of the invoked methodmethodParams- The parameters of the invoked methods as an array of Objects- Returns:
- the result of the invoked method or
nullif the method returnsvoid - Throws:
NotFoundExceptionServiceExceptionIMTPException
-
-