public class AgentContainer extends ContainerController implements PlatformController
jade.wrapper.ContainerController instead.PlatformController.ListenermyPlatformController| Constructor and Description |
|---|
AgentContainer(ContainerProxy cp,
AgentContainer impl,
java.lang.String platformName) |
| Modifier and Type | Method and Description |
|---|---|
void |
addPlatformListener(PlatformController.Listener aListener)
Add a platform listener.
|
java.lang.String |
getName()
Get the name of the platform.
|
State |
getState()
Returns an instance of PlatformState.
|
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.
|
acceptNewAgent, createNewAgent, getAgent, getAgent, getContainerName, getPlatformController, getPlatformName, initPlatformController, installMTP, isJoined, kill, uninstallMTPclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreateNewAgent, getAgent, killpublic AgentContainer(ContainerProxy cp,
AgentContainer impl,
java.lang.String platformName)
public java.lang.String getName()
PlatformControllergetName in interface PlatformControllerpublic void start()
throws ControllerException
PlatformControllerstart in interface PlatformControllerControllerException - If any probelms other than illegal state occur.public void suspend()
throws ControllerException
PlatformControllersuspend in interface PlatformControllerControllerException - If any probelms other than illegal state occur.public void resume()
throws ControllerException
PlatformControllerresume in interface PlatformControllerControllerException - If any probelms other than illegal state occur.public State getState()
PlatformControllergetState in interface PlatformControllerpublic void addPlatformListener(PlatformController.Listener aListener) throws ControllerException
PlatformControlleraddPlatformListener in interface PlatformControlleraListener - The listener to be notified.ControllerExceptionpublic void removePlatformListener(PlatformController.Listener aListener) throws ControllerException
PlatformControllerremovePlatformListener in interface PlatformControlleraListener - The listener to be notified.ControllerException