public class AgentContainer extends ContainerController implements PlatformController
jade.wrapper.ContainerController
instead.PlatformController.Listener
myPlatformController
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, uninstallMTP
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createNewAgent, getAgent, kill
public AgentContainer(ContainerProxy cp, AgentContainer impl, java.lang.String platformName)
public java.lang.String getName()
PlatformController
getName
in interface PlatformController
public void start() throws ControllerException
PlatformController
start
in interface PlatformController
ControllerException
- If any probelms other than illegal state occur.public void suspend() throws ControllerException
PlatformController
suspend
in interface PlatformController
ControllerException
- If any probelms other than illegal state occur.public void resume() throws ControllerException
PlatformController
resume
in interface PlatformController
ControllerException
- If any probelms other than illegal state occur.public State getState()
PlatformController
getState
in interface PlatformController
public void addPlatformListener(PlatformController.Listener aListener) throws ControllerException
PlatformController
addPlatformListener
in interface PlatformController
aListener
- The listener to be notified.ControllerException
public void removePlatformListener(PlatformController.Listener aListener) throws ControllerException
PlatformController
removePlatformListener
in interface PlatformController
aListener
- The listener to be notified.ControllerException