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 depracated since, for backward compatibility reasons, it is used internally by the framework. Use jade.wrapper.ContainerController instead.

Author:
Giovanni Caire - TILAB

Nested Class Summary
 
Nested classes inherited from class jade.wrapper.PlatformController
PlatformController.Listener
 
Field Summary
 
Fields inherited from class jade.wrapper.ContainerController
myPlatformController
 
Constructor Summary
AgentContainer(ContainerProxy cp, jade.core.AgentContainer impl, java.lang.String platformName)
           
 
Method Summary
 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.
 
Methods inherited from class jade.wrapper.ContainerController
acceptNewAgent, createNewAgent, getAgent, getContainerName, getPlatformController, getPlatformName, initPlatformController, installMTP, 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,
                      jade.core.AgentContainer impl,
                      java.lang.String platformName)
Method Detail

getName

public java.lang.String getName()
Description copied from interface: PlatformController
Get the name of the platform.

Specified by:
getName in interface PlatformController
Returns:
String The platform name.

start

public void start()
           throws ControllerException
Description copied from interface: PlatformController
Start the platform after its been initialized.

Specified by:
start in interface PlatformController
Throws:
ControllerException - If any probelms other than illegal state occur.

suspend

public void suspend()
             throws ControllerException
Description copied from interface: PlatformController
Suspend the agent platform. Next action may be resume or kill.

Specified by:
suspend in interface PlatformController
Throws:
ControllerException - If any probelms other than illegal state occur.

resume

public void resume()
            throws ControllerException
Description copied from interface: PlatformController
Activate the agent platform. Next action may be suspend or kill.

Specified by:
resume in interface PlatformController
Throws:
ControllerException - If any probelms other than illegal state occur.

getState

public State getState()
Description copied from interface: PlatformController
Returns an instance of PlatformState.

Specified by:
getState in interface PlatformController

addPlatformListener

public void addPlatformListener(PlatformController.Listener aListener)
                         throws ControllerException
Description copied from interface: PlatformController
Add a platform listener.

Specified by:
addPlatformListener in interface PlatformController
Parameters:
aListener - The listener to be notified.
ControllerException

removePlatformListener

public void removePlatformListener(PlatformController.Listener aListener)
                            throws ControllerException
Description copied from interface: PlatformController
Remove a platform listener.

Specified by:
removePlatformListener in interface PlatformController
Parameters:
aListener - The listener to be notified.
ControllerException


JADE