public static enum Madkit.BooleanOption extends Enum<Madkit.BooleanOption> implements MadkitOption
SYNOPSIS
--optionName [true|false]
DESCRIPTIONIf no boolean value is specified, the option is considered as being set to true.
EXAMPLES
| Enum Constant and Description |
|---|
autoConnectMadkitWebsite
Connect to the MaDKit repository on startup.
|
console
Launches the
ConsoleAgent before any other. |
createLogFiles
If activated, MaDKit will create a log file for every agent which has
a log level greater than
Level.OFF. |
desktop
Starts the desktop mode.
|
loadLocalDemos
Loads all the jar files which are in the demos directory on startup.
|
network
Starts the network on startup.
|
noAgentConsoleLog
Defines if agent logging should be quiet in the
default console.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
isActivated(Properties session)
Tells if this option is activated for this session.
|
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.BooleanOption |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Madkit.BooleanOption[] |
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, valueOfnamepublic static final Madkit.BooleanOption desktop
Madkit.Option.launchAgents and Madkit.Option.configFile
are both null, then the desktop mode will be automatically set
to true during startup.public static final Madkit.BooleanOption autoConnectMadkitWebsite
public static final Madkit.BooleanOption network
public static final Madkit.BooleanOption createLogFiles
Level.OFF.
Default value is "false".Madkit.Option.logDirectorypublic static final Madkit.BooleanOption noAgentConsoleLog
public static final Madkit.BooleanOption console
ConsoleAgent before any other.public static final Madkit.BooleanOption loadLocalDemos
public static Madkit.BooleanOption[] values()
for (Madkit.BooleanOption c : Madkit.BooleanOption.values()) System.out.println(c);
public static Madkit.BooleanOption valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant
with the specified nameNullPointerException - if the argument is nullpublic boolean isActivated(Properties session)
session - true if this boolean option
is set to true for this configpublic String toString()
--" so that
it could interpreted as an option of the command line or
in Madkit.Madkit(String...).toString in interface MadkitOptiontoString in class Enum<Madkit.BooleanOption>--optionNameFabien Michel, Olivier Gutknecht, Jacques Ferber