public static enum Madkit.LevelOption extends Enum<Madkit.LevelOption> implements MadkitOption
Level
value.
These options could be used from the command line or using the main method of MaDKit.Enum Constant and Description |
---|
agentLogLevel
Option defining the default agent log level for newly
launched agents.
|
guiLogLevel
Only useful for kernel developers
|
kernelLogLevel
Only useful for kernel developers
|
madkitLogLevel
Can be used to make MaDKit quiet
|
networkLogLevel |
warningLogLevel
Option defining the default warning log level for newly
launched agents.
|
Modifier and Type | Method and Description |
---|---|
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.LevelOption |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Madkit.LevelOption[] |
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.LevelOption agentLogLevel
AbstractAgent.setLogLevel(Level)
.
Example:
public static final Madkit.LevelOption kernelLogLevel
public static final Madkit.LevelOption guiLogLevel
public static final Madkit.LevelOption madkitLogLevel
public static final Madkit.LevelOption warningLogLevel
AgentLogger.setWarningLogLevel(Level)
on their personal logger.
Example:
AbstractAgent.logger
,
Logger
,
AbstractAgent.getMadkitProperty(String)
,
AbstractAgent.setMadkitProperty(String, String)
public static final Madkit.LevelOption networkLogLevel
public static Madkit.LevelOption[] values()
for (Madkit.LevelOption c : Madkit.LevelOption.values()) System.out.println(c);
public static Madkit.LevelOption 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 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 Enum<Madkit.LevelOption>
--optionName
Fabien Michel, Olivier Gutknecht, Jacques Ferber - May 2 2015