Class DynamicJadeGateway

    • Constructor Detail

      • DynamicJadeGateway

        public DynamicJadeGateway()
    • Method Detail

      • getProfileProperty

        public final String getProfileProperty​(String key,
                                               String defaultValue)
        Searches for the property with the specified key in the JADE Platform Profile. The method returns the default value argument if the property is not found.
        Parameters:
        key - - the property key.
        defaultValue - - a default value
        Returns:
        the value with the specified key value
        See Also:
        Properties.getProperty(String, String)
      • init

        public final void init​(String agentName,
                               String agentClassName,
                               Object[] agentArgs,
                               Properties jadeProfile)
        Initialize this gateway by passing the proper configuration parameters
        Parameters:
        agentName - is the name of the JadeGateway internal agent. If null is passed the default name will be used.
        agentClassName - is the fully-qualified class name of the JadeGateway internal agent. If null is passed the default class will be used.
        agentArgs - is the list of agent arguments
        jadeProfile - the properties that contain all parameters for running JADE (see jade.core.Profile). Typically these properties will have to be read from a JADE configuration file. If jadeProfile is null, then a JADE container attaching to a main on the local host is launched
      • init

        public final void init​(String agentClassName,
                               Object[] agentArgs,
                               Properties jadeProfile)
        Initialize this gateway by passing the proper configuration parameters
        Parameters:
        agentClassName - is the fully-qualified class name of the JadeGateway internal agent. If null is passed the default class will be used.
        agentArgs - is the list of agent arguments
        jadeProfile - the properties that contain all parameters for running JADE (see jade.core.Profile). Typically these properties will have to be read from a JADE configuration file. If jadeProfile is null, then a JADE container attaching to a main on the local host is launched
      • init

        public final void init​(String agentClassName,
                               Properties jadeProfile)
      • shutdown

        public void shutdown()
        Kill the JADE Container in case it is running.
      • isGatewayActive

        public boolean isGatewayActive()
        Return the state of JadeGateway
        Returns:
        true if the container and the gateway agent are active, false otherwise
      • createAID

        public AID createAID​(String localName)