jade.wrapper
Class MainContainer

java.lang.Object
  |
  +--jade.wrapper.AgentContainer
        |
        +--jade.wrapper.MainContainer

public class MainContainer
extends AgentContainer

This class is a Proxy class, allowing access to a JADE main container. Invoking methods on instances of this class, it is possible to request services from in-process main containers. This class must not be instantiated by applications. Instead, use the createMainContainer() method in class Runtime.

Author:
Giovanni Rimassa - Universita` di Parma
See Also:
Runtime.createMainContainer(Profile p)

Constructor Summary
MainContainer(AgentContainerImpl impl, java.lang.String platformName)
          Public constructor.
 
Methods inherited from class jade.wrapper.AgentContainer
acceptNewAgent, addPlatformListener, createNewAgent, getAgent, getName, getState, installMTP, kill, removePlatformListener, resume, start, suspend, uninstallMTP
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MainContainer

public MainContainer(AgentContainerImpl impl,
                     java.lang.String platformName)
Public constructor. This constructor requires a concrete implementation of a JADE main container, which cannot be instantiated bt applications, so it cannot be meaningfully called from application code. The proper way to create an agent container from an application is to call the Runtime.createMainContainer() method.
Parameters:
impl - A concrete implementation of a JADE main container.
platformName - the name of this platform
See Also:
Runtime.createMainContainer(Profile p)