public static enum Madkit.Option extends java.lang.Enum<Madkit.Option> implements MadkitOption
Enum Constant and Description |
---|
agentFrameClass
the agent frame class which should be used by the GUI manager,
default is
AgentFrame |
configFile
Can be used to specify multiple properties at once,
using a regular properties file
|
desktopFrameClass
the desktop frame class which should be used, default is
MDKDesktopFrame |
i18nDirectory
the directory containing the MDK i18n files
|
launchAgents
Used to launch agents at start up.
|
logDirectory
Used to specify the directory wherein the logs should be done
when the
Madkit.BooleanOption.createLogFiles is activated. |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
toString()
Returns the constant's name prefixed by "
-- " so that
it could interpreted as an option of the command line or
in Madkit.Madkit(String...) . |
static Madkit.Option |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Madkit.Option[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf
name
public static final Madkit.Option launchAgents
SYNOPSIS
--launchAgents
AGENT_CLASS_NAME[,GUI][,NB][;OTHERS]
true
DESCRIPTIONThe optional parameters could be used to (1) launch several different types of agents, (2) launch the agents with a default GUI and/or (3) specify the number of desired instances of each type.
DEFAULT VALUEDefault value is "null", meaning that no agent has to be launched.
Default values for the optional parameters are
false
EXAMPLES
public static final Madkit.Option logDirectory
Madkit.BooleanOption.createLogFiles
is activated.
SYNOPSIS
--logDirectory
DIRECTORY_NAME
DESCRIPTIONSpecify the desired directory. It could be an absolute or a relative path. At runtime, a log directory named with the current date (second precision) will be created in the log directory for each MaDKit session. E.g. /home/neo/madkit_5/logs/2012.02.23.16.23.53
DEFAULT VALUEDefault value is "logs", so that a directory named "logs" will be created in the application working directory.
EXAMPLES
Madkit.BooleanOption.createLogFiles
public static final Madkit.Option desktopFrameClass
MDKDesktopFrame
public static final Madkit.Option i18nDirectory
public static final Madkit.Option configFile
public static final Madkit.Option agentFrameClass
AgentFrame
public static Madkit.Option[] values()
for (Madkit.Option c : Madkit.Option.values()) System.out.println(c);
public static Madkit.Option valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic java.lang.String toString()
--
" so that
it could interpreted as an option of the command line or
in Madkit.Madkit(String...)
.toString
in interface MadkitOption
toString
in class java.lang.Enum<Madkit.Option>
--optionName
Fabien Michel, Olivier Gutknecht, Jacques Ferber - November 18 2014