public class RunJadeMAS extends RunCentralisedMAS
RunCentralisedMAS.CentralisedAgArchForPool
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
controllerName |
static java.lang.String |
environmentName |
btDebug, control, debug, defaultProjectFileName, env, logPropFile, project, readFromJAR, runner, stopMASFileName, urlPrefix
Constructor and Description |
---|
RunJadeMAS() |
Modifier and Type | Method and Description |
---|---|
void |
create()
create environment, agents, controller
|
void |
createAgs() |
protected void |
createButtons() |
void |
createController() |
void |
createEnvironment() |
void |
finish() |
int |
init(java.lang.String[] args) |
protected boolean |
isFileName(java.lang.String arg)
Test if an argument actually references a file.
|
static void |
main(java.lang.String[] args) |
protected java.lang.String[] |
prepareArgs(java.lang.String[] args)
Transform original style boot arguments to new form.
|
protected void |
startAgs() |
protected boolean |
startContainer() |
addAg, createNewReplAgButton, createPauseButton, createStopButton, delAg, getAg, getAgs, getControllerInfraTier, getDefaultLogProperties, getEnvironmentInfraTier, getProject, getRunner, isDebug, setupDefaultConsoleLogger, setupLogger, start, startSyncMode, stopAgs, waitEnd
public static java.lang.String controllerName
public static java.lang.String environmentName
public static void main(java.lang.String[] args) throws JasonException
JasonException
public int init(java.lang.String[] args)
init
in class RunCentralisedMAS
public void create() throws JasonException
RunCentralisedMAS
create
in class RunCentralisedMAS
JasonException
protected void createButtons()
createButtons
in class RunCentralisedMAS
protected boolean startContainer()
public void createEnvironment() throws JasonException
createEnvironment
in class RunCentralisedMAS
JasonException
public void createController() throws JasonException
createController
in class RunCentralisedMAS
JasonException
public void createAgs() throws JasonException
createAgs
in class RunCentralisedMAS
JasonException
protected void startAgs()
startAgs
in class RunCentralisedMAS
public void finish()
finish
in class RunCentralisedMAS
protected java.lang.String[] prepareArgs(java.lang.String[] args)
In the following 'x' and 'y' denote arbitrary strings; 'n' an integer. Transformation Rules: Original New ------------------------------ -host x host:x -owner x owner:x -name x name:x -port n port:n -mtp x mtp:x -aclcodec:x aclcodec:x -conf x import:x -conf -conf -container -container -gui -gui -version -version -v -version -help -help -h -help -nomtp -nomtp -nomobility -nomobility -y x y:x agent list agents:agent listIf the arguments contain either import:x or agents:x we will assume that the arguments are already in the new format and leave them alone. For "import:" we test if what follows is a file name and in the event it isn't we assume that it was if there are any other "-x" options following.
You can't mix the old form with the new as this would make the distinction between foo:bar as meaning a property named foo with a value bar or an agent named foo implmented by class bar impossible.
args
- The command line arguments.protected boolean isFileName(java.lang.String arg)
arg
- The argument to test.