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 SummaryFields Modifier and Type Field Description protected IInternalAccessagentThe agent.protected ControlCenterccThe control center.protected booleanconnectedTrue when initially connected to a remote platform..static intMAX_TRIESNumber of tries, when connecting initially to remote platforms.protected java.lang.StringplatformsThe platforms argument.static intRETRY_DELAYDelay in milliseconds between two subsequent tries.protected booleansaveonexitThe saveonexit argument.protected inttriesNumber of tries, when connecting initially to remote platforms.
 - 
Constructor SummaryConstructors Constructor Description JCCAgent()
 - 
Method SummaryAll 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.ControlCentergetControlCenter()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_TRIESpublic static final int MAX_TRIES Number of tries, when connecting initially to remote platforms.- See Also:
- Constant Field Values
 
 - 
RETRY_DELAYpublic static final int RETRY_DELAY Delay in milliseconds between two subsequent tries.- See Also:
- Constant Field Values
 
 - 
agentprotected IInternalAccess agent The agent.
 - 
saveonexitprotected boolean saveonexit The saveonexit argument.
 - 
platformsprotected java.lang.String platforms The platforms argument.
 - 
ccprotected ControlCenter cc The control center.
 - 
triesprotected int tries Number of tries, when connecting initially to remote platforms.
 - 
connectedprotected boolean connected True when initially connected to a remote platform..
 
- 
 - 
Method Detail- 
executepublic IFuture<java.lang.Void> execute(IInternalAccess agent) Open the gui on agent startup.- Specified by:
- executein interface- IComponentStep<java.lang.Void>
- Returns:
- The result of the command.
 
 - 
agentKilledpublic IFuture<java.lang.Void> agentKilled(IInternalAccess agent) Close the gui on agent shutdown.
 - 
getControlCenterpublic ControlCenter getControlCenter() Get the control center.
 - 
initControlCenterprotected IFuture<java.lang.Void> initControlCenter(IInternalAccess agent, IExternalAccess platform) Init the control center with a given platform.
 
- 
 
-