Package jade.core
Interface FrontEnd
-
- All Known Implementing Classes:
FrontEndStub
public interface FrontEnd- Author:
- Giovanni Caire - TILAB
-
-
Field Summary
Fields Modifier and Type Field Description static StringREMOTE_BACK_END_ADDRESSESThis constant is the name of the property whose value contains the list of addresses where a contaner Front End can contact its Back End.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidcreateAgent(String name, String className, String[] args)Request the FrontEnd container to create a new agent.voidexit(boolean self)Request the FrontEnd container to exit.voidkillAgent(String name)Request the FrontEnd container to kill an agent.voidmessageIn(ACLMessage msg, String receiver)Pass an ACLMessage to the FrontEnd for posting.voidresumeAgent(String name)Request the FrontEnd container to resume an agent.voidsuspendAgent(String name)Request the FrontEnd container to suspend an agent.voidsynch()Request the FrontEnd to synchronize i.e.
-
-
-
Field Detail
-
REMOTE_BACK_END_ADDRESSES
static final String REMOTE_BACK_END_ADDRESSES
This constant is the name of the property whose value contains the list of addresses where a contaner Front End can contact its Back End.- See Also:
- Constant Field Values
-
-
Method Detail
-
createAgent
void createAgent(String name, String className, String[] args) throws IMTPException
Request the FrontEnd container to create a new agent.- Parameters:
name- The name of the new agent.className- The class of the new agent.args- The arguments to be passed to the new agent.- Throws:
IMTPException
-
killAgent
void killAgent(String name) throws NotFoundException, IMTPException
Request the FrontEnd container to kill an agent.- Parameters:
name- The name of the agent to kill.- Throws:
NotFoundExceptionIMTPException
-
suspendAgent
void suspendAgent(String name) throws NotFoundException, IMTPException
Request the FrontEnd container to suspend an agent.- Parameters:
name- The name of the agent to suspend.- Throws:
NotFoundExceptionIMTPException
-
resumeAgent
void resumeAgent(String name) throws NotFoundException, IMTPException
Request the FrontEnd container to resume an agent.- Parameters:
name- The name of the agent to resume.- Throws:
NotFoundExceptionIMTPException
-
messageIn
void messageIn(ACLMessage msg, String receiver) throws NotFoundException, IMTPException
Pass an ACLMessage to the FrontEnd for posting.- Parameters:
msg- The message to be posted.sender- The name of the receiver agent.- Throws:
NotFoundExceptionIMTPException
-
exit
void exit(boolean self) throws IMTPException
Request the FrontEnd container to exit.- Throws:
IMTPException
-
synch
void synch() throws IMTPExceptionRequest the FrontEnd to synchronize i.e. to notify all its agents- Throws:
IMTPException
-
-