Package jade.wrapper
Class AgentContainer
- java.lang.Object
-
- jade.wrapper.ContainerController
-
- jade.wrapper.AgentContainer
-
- All Implemented Interfaces:
PlatformController
public class AgentContainer extends ContainerController implements PlatformController
This class is maintained for backward compatibility only. It is not deprecated since, for backward compatibility reasons, it is used internally by the framework. Usejade.wrapper.ContainerControllerinstead.- Author:
- Giovanni Caire - TILAB
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface jade.wrapper.PlatformController
PlatformController.Listener
-
-
Field Summary
-
Fields inherited from class jade.wrapper.ContainerController
myPlatformController
-
-
Constructor Summary
Constructors Constructor Description AgentContainer(ContainerProxy cp, AgentContainer impl, String platformName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddPlatformListener(PlatformController.Listener aListener)Add a platform listener.StringgetName()Get the name of the platform.StategetState()Returns an instance of PlatformState.voidremovePlatformListener(PlatformController.Listener aListener)Remove a platform listener.voidresume()Activate the agent platform.voidstart()Start the platform after its been initialized.voidsuspend()Suspend the agent platform.-
Methods inherited from class jade.wrapper.ContainerController
acceptNewAgent, createNewAgent, getAgent, getAgent, getContainerName, getPlatformController, getPlatformName, initPlatformController, installMTP, isJoined, kill, uninstallMTP
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface jade.wrapper.PlatformController
createNewAgent, getAgent, kill
-
-
-
-
Constructor Detail
-
AgentContainer
public AgentContainer(ContainerProxy cp, AgentContainer impl, String platformName)
-
-
Method Detail
-
getName
public String getName()
Description copied from interface:PlatformControllerGet the name of the platform.- Specified by:
getNamein interfacePlatformController- Returns:
- String The platform name.
-
start
public void start() throws ControllerExceptionDescription copied from interface:PlatformControllerStart the platform after its been initialized.- Specified by:
startin interfacePlatformController- Throws:
ControllerException- If any probelms other than illegal state occur.
-
suspend
public void suspend() throws ControllerExceptionDescription copied from interface:PlatformControllerSuspend the agent platform. Next action may be resume or kill.- Specified by:
suspendin interfacePlatformController- Throws:
ControllerException- If any probelms other than illegal state occur.
-
resume
public void resume() throws ControllerExceptionDescription copied from interface:PlatformControllerActivate the agent platform. Next action may be suspend or kill.- Specified by:
resumein interfacePlatformController- Throws:
ControllerException- If any probelms other than illegal state occur.
-
getState
public State getState()
Description copied from interface:PlatformControllerReturns an instance of PlatformState.- Specified by:
getStatein interfacePlatformController
-
addPlatformListener
public void addPlatformListener(PlatformController.Listener aListener) throws ControllerException
Description copied from interface:PlatformControllerAdd a platform listener.- Specified by:
addPlatformListenerin interfacePlatformController- Parameters:
aListener- The listener to be notified.- Throws:
ControllerException
-
removePlatformListener
public void removePlatformListener(PlatformController.Listener aListener) throws ControllerException
Description copied from interface:PlatformControllerRemove a platform listener.- Specified by:
removePlatformListenerin interfacePlatformController- Parameters:
aListener- The listener to be notified.- Throws:
ControllerException
-
-