Package jadex.tools.jcc
Class JCCAgent
- java.lang.Object
-
- jadex.tools.jcc.JCCAgent
-
- All Implemented Interfaces:
IComponentStep<java.lang.Void>
public class JCCAgent extends java.lang.Object implements IComponentStep<java.lang.Void>
Micro component for opening the JCC gui.
-
-
Field Summary
Fields Modifier and Type Field Description protected IInternalAccess
agent
The agent.protected ControlCenter
cc
The control center.protected boolean
connected
True when initially connected to a remote platform..static int
MAX_TRIES
Number of tries, when connecting initially to remote platforms.protected java.lang.String
platforms
The platforms argument.static int
RETRY_DELAY
Delay in milliseconds between two subsequent tries.protected boolean
saveonexit
The saveonexit argument.protected int
tries
Number of tries, when connecting initially to remote platforms.
-
Constructor Summary
Constructors Constructor Description JCCAgent()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IFuture<java.lang.Void>
agentKilled(IInternalAccess agent)
Close the gui on agent shutdown.IFuture<java.lang.Void>
execute(IInternalAccess agent)
Open the gui on agent startup.ControlCenter
getControlCenter()
Get the control center.protected IFuture<java.lang.Void>
initControlCenter(IInternalAccess agent, IExternalAccess platform)
Init the control center with a given platform.
-
-
-
Field Detail
-
MAX_TRIES
public static final int MAX_TRIES
Number of tries, when connecting initially to remote platforms.- See Also:
- Constant Field Values
-
RETRY_DELAY
public static final int RETRY_DELAY
Delay in milliseconds between two subsequent tries.- See Also:
- Constant Field Values
-
agent
protected IInternalAccess agent
The agent.
-
saveonexit
protected boolean saveonexit
The saveonexit argument.
-
platforms
protected java.lang.String platforms
The platforms argument.
-
cc
protected ControlCenter cc
The control center.
-
tries
protected int tries
Number of tries, when connecting initially to remote platforms.
-
connected
protected boolean connected
True when initially connected to a remote platform..
-
-
Method Detail
-
execute
public IFuture<java.lang.Void> execute(IInternalAccess agent)
Open the gui on agent startup.- Specified by:
execute
in interfaceIComponentStep<java.lang.Void>
- Returns:
- The result of the command.
-
agentKilled
public IFuture<java.lang.Void> agentKilled(IInternalAccess agent)
Close the gui on agent shutdown.
-
getControlCenter
public ControlCenter getControlCenter()
Get the control center.
-
initControlCenter
protected IFuture<java.lang.Void> initControlCenter(IInternalAccess agent, IExternalAccess platform)
Init the control center with a given platform.
-
-