|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Defines those methods which are permitted on a platform.
Inner Class Summary | |
static interface |
PlatformController.Listener
|
Method Summary | |
void |
addPlatformListener(PlatformController.Listener aListener)
Add a platform listener. |
AgentController |
createNewAgent(java.lang.String nickname,
java.lang.String className,
java.lang.Object[] args)
Create a new agent. |
AgentController |
getAgent(java.lang.String localAgentName)
Get agent proxy to local agent given its name. |
java.lang.String |
getName()
Get the name of the platform. |
State |
getState()
Returns an instance of PlatformState. |
void |
kill()
Kill the agent platform. |
void |
removePlatformListener(PlatformController.Listener aListener)
Remove a platform listener. |
void |
resume()
Activate the agent platform. |
void |
start()
Start the platform after its been initialized. |
void |
suspend()
Suspend the agent platform. |
Method Detail |
public java.lang.String getName()
public void start() throws ControllerException
public void suspend() throws ControllerException
public void resume() throws ControllerException
public void kill() throws ControllerException
public AgentController getAgent(java.lang.String localAgentName) throws ControllerException
localAgentName
- The short local name of the desired agent.public AgentController createNewAgent(java.lang.String nickname, java.lang.String className, java.lang.Object[] args) throws ControllerException
nickName
- The name of the agent.className
- The class implementing the agent.args
- The agents parameters - typically String[] from a configuration file.public State getState()
public void addPlatformListener(PlatformController.Listener aListener) throws ControllerException
aListener
- The listener to be notified.public void removePlatformListener(PlatformController.Listener aListener) throws ControllerException
aListener
- The listener to be notified.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |