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.
|
cgrWarnings
activates CGR warnings for the logging of the agents. see
AgentLogger.enableCGRWarnings() |
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. |
debug
Activates the debug mode so that all agents' log levels are set to
Level.ALL |
desktop
Starts the desktop mode.
|
loadLocalDemos
Loads on startup all the jar files found in a "demos" directory placed in the working directory.
|
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 debug
Level.ALLpublic 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 final Madkit.BooleanOption cgrWarnings
AgentLogger.enableCGRWarnings()AgentLoggerpublic 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>--optionName
Fabien Michel, Olivier Gutknecht, Jacques Ferber - February 17 2020