Package jade.imtp.leap
Class FrontEndStub
- java.lang.Object
-
- jade.imtp.leap.MicroStub
-
- jade.imtp.leap.FrontEndStub
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class jade.imtp.leap.MicroStub
MicroStub.PostponedCommand
-
-
Field Summary
-
Fields inherited from class jade.imtp.leap.MicroStub
logger, MINIMUM_TIMEOUT, myDispatcher, pendingCommands
-
Fields inherited from interface jade.core.FrontEnd
REMOTE_BACK_END_ADDRESSES
-
-
Constructor Summary
Constructors Constructor Description FrontEndStub(Dispatcher d)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcreateAgent(String name, String className, String[] args)Request the FrontEnd container to create a new agent.static StringencodeCreateMediatorResponse(Properties pp)static StringencodeProperties(Properties pp)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.static PropertiesparseCreateMediatorRequest(String s)ListremovePendingMessages(MessageTemplate template)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.-
Methods inherited from class jade.imtp.leap.MicroStub
checkFlush, endFlush, executeRemotely, flush, handlePostponedCommandExpired, isEmpty
-
-
-
-
Constructor Detail
-
FrontEndStub
public FrontEndStub(Dispatcher d)
-
-
Method Detail
-
createAgent
public void createAgent(String name, String className, String[] args) throws IMTPException
Description copied from interface:FrontEndRequest the FrontEnd container to create a new agent.- Specified by:
createAgentin interfaceFrontEnd- 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
public void killAgent(String name) throws NotFoundException, IMTPException
Description copied from interface:FrontEndRequest the FrontEnd container to kill an agent.- Specified by:
killAgentin interfaceFrontEnd- Parameters:
name- The name of the agent to kill.- Throws:
NotFoundExceptionIMTPException
-
suspendAgent
public void suspendAgent(String name) throws NotFoundException, IMTPException
Description copied from interface:FrontEndRequest the FrontEnd container to suspend an agent.- Specified by:
suspendAgentin interfaceFrontEnd- Parameters:
name- The name of the agent to suspend.- Throws:
NotFoundExceptionIMTPException
-
resumeAgent
public void resumeAgent(String name) throws NotFoundException, IMTPException
Description copied from interface:FrontEndRequest the FrontEnd container to resume an agent.- Specified by:
resumeAgentin interfaceFrontEnd- Parameters:
name- The name of the agent to resume.- Throws:
NotFoundExceptionIMTPException
-
messageIn
public void messageIn(ACLMessage msg, String receiver) throws NotFoundException, IMTPException
Description copied from interface:FrontEndPass an ACLMessage to the FrontEnd for posting.- Specified by:
messageInin interfaceFrontEnd- Parameters:
msg- The message to be posted.- Throws:
NotFoundExceptionIMTPException
-
exit
public void exit(boolean self) throws IMTPExceptionDescription copied from interface:FrontEndRequest the FrontEnd container to exit.- Specified by:
exitin interfaceFrontEnd- Throws:
IMTPException
-
synch
public void synch() throws IMTPExceptionDescription copied from interface:FrontEndRequest the FrontEnd to synchronize i.e. to notify all its agents- Specified by:
synchin interfaceFrontEnd- Throws:
IMTPException
-
removePendingMessages
public List removePendingMessages(MessageTemplate template)
-
encodeCreateMediatorResponse
public static final String encodeCreateMediatorResponse(Properties pp)
-
encodeProperties
public static final String encodeProperties(Properties pp)
-
parseCreateMediatorRequest
public static final Properties parseCreateMediatorRequest(String s) throws ICPException
- Throws:
ICPException
-
-