|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjade.wrapper.gateway.DynamicJadeGateway
public class DynamicJadeGateway
| Constructor Summary | |
|---|---|
DynamicJadeGateway()
|
|
| Method Summary | |
|---|---|
void |
addListener(GatewayListener l)
|
void |
checkJADE()
This method checks if both the container, and the agent, are up and running. |
AID |
createAID(java.lang.String localName)
|
void |
execute(java.lang.Object command)
execute a command. |
void |
execute(java.lang.Object command,
long timeout)
Execute a command specifying a timeout. |
java.lang.String |
getProfileProperty(java.lang.String key,
java.lang.String defaultValue)
Searches for the property with the specified key in the JADE Platform Profile. |
void |
init(java.lang.String agentClassName,
java.lang.Object[] agentArgs,
Properties jadeProfile)
Initialize this gateway by passing the proper configuration parameters |
void |
init(java.lang.String agentClassName,
Properties jadeProfile)
|
boolean |
isGatewayActive()
Return the state of JadeGateway |
void |
removeListener(GatewayListener l)
|
void |
shutdown()
Kill the JADE Container in case it is running. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DynamicJadeGateway()
| Method Detail |
|---|
public final java.lang.String getProfileProperty(java.lang.String key,
java.lang.String defaultValue)
key - - the property key.defaultValue - - a default value
Properties.getProperty(String, String)
public final void execute(java.lang.Object command)
throws StaleProxyException,
ControllerException,
java.lang.InterruptedException
releaseCommand
is called by the executor agent)
StaleProxyException - if the method was not able to execute the Command
ControllerException
java.lang.InterruptedExceptionAgentController.putO2AObject(Object, boolean)
public final void execute(java.lang.Object command,
long timeout)
throws StaleProxyException,
ControllerException,
java.lang.InterruptedException
java.lang.InterruptedException - if the timeout expires or the Thread
executing this method is interrupted.
StaleProxyException - if the method was not able to execute the Command
ControllerExceptionAgentController.putO2AObject(Object, boolean)
public final void checkJADE()
throws StaleProxyException,
ControllerException
StaleProxyException
ControllerException
public final void init(java.lang.String agentClassName,
java.lang.Object[] agentArgs,
Properties jadeProfile)
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 argumentsjadeProfile - 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
public final void init(java.lang.String agentClassName,
Properties jadeProfile)
public final void shutdown()
public final boolean isGatewayActive()
public AID createAID(java.lang.String localName)
public void addListener(GatewayListener l)
public void removeListener(GatewayListener l)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||