jade.core
Interface FrontEnd


public interface FrontEnd

Author:
Giovanni Caire - TILAB

Field Summary
static java.lang.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.
 
Method Summary
 void createAgent(java.lang.String name, java.lang.String className, java.lang.String[] args)
          Request the FrontEnd container to create a new agent.
 void exit(boolean self)
          Request the FrontEnd container to exit.
 void killAgent(java.lang.String name)
          Request the FrontEnd container to kill an agent.
 void messageIn(ACLMessage msg, java.lang.String receiver)
          Pass an ACLMessage to the FrontEnd for posting.
 void resumeAgent(java.lang.String name)
          Request the FrontEnd container to resume an agent.
 void suspendAgent(java.lang.String name)
          Request the FrontEnd container to suspend an agent.
 void synch()
          Request the FrontEnd to synchronize i.e. to notify all its agents
 

Field Detail

REMOTE_BACK_END_ADDRESSES

static final java.lang.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(java.lang.String name,
                 java.lang.String className,
                 java.lang.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(java.lang.String name)
               throws NotFoundException,
                      IMTPException
Request the FrontEnd container to kill an agent.

Parameters:
name - The name of the agent to kill.
Throws:
NotFoundException
IMTPException

suspendAgent

void suspendAgent(java.lang.String name)
                  throws NotFoundException,
                         IMTPException
Request the FrontEnd container to suspend an agent.

Parameters:
name - The name of the agent to suspend.
Throws:
NotFoundException
IMTPException

resumeAgent

void resumeAgent(java.lang.String name)
                 throws NotFoundException,
                        IMTPException
Request the FrontEnd container to resume an agent.

Parameters:
name - The name of the agent to resume.
Throws:
NotFoundException
IMTPException

messageIn

void messageIn(ACLMessage msg,
               java.lang.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:
NotFoundException
IMTPException

exit

void exit(boolean self)
          throws IMTPException
Request the FrontEnd container to exit.

Throws:
IMTPException

synch

void synch()
           throws IMTPException
Request the FrontEnd to synchronize i.e. to notify all its agents

Throws:
IMTPException