public static enum Madkit.BooleanOption extends java.lang.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(java.util.Properties session)
Tells if this option is activated for this session.
|
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.BooleanOption |
valueOf(java.lang.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, valueOf
name
public 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.ALL
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.logDirectory
public 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()
AgentLogger
public static Madkit.BooleanOption[] values()
for (Madkit.BooleanOption c : Madkit.BooleanOption.values()) System.out.println(c);
public static Madkit.BooleanOption 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 boolean isActivated(java.util.Properties session)
session
- true
if this boolean option is set to true
for this configpublic 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.BooleanOption>
--optionName
Fabien Michel, Olivier Gutknecht, Jacques Ferber - September 9 2019