Package madkit.kernel
Enum Class Madkit.LevelOption
- All Implemented Interfaces:
Serializable
,Comparable<Madkit.LevelOption>
,java.lang.constant.Constable
,MadkitOption
- Enclosing class:
- Madkit
MaDKit options valued with a string representing a
Level
value. These
options could be used from the command line or using the main method of
MaDKit.- Since:
- MaDKit 5.0.0.10
- Version:
- 0.9
- Author:
- Fabien Michel
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionOption defining the default agent log level for newly launched agents.Only useful for kernel developersOnly useful for kernel developersCan be used to make MaDKit quietDeprecated. -
Method Summary
Modifier and TypeMethodDescriptiongetValue
(Properties session) toString()
Returns the constant's name prefixed by "--
" so that it could interpreted as an option of the command line or inMadkit(String...)
.static Madkit.LevelOption
Returns the enum constant of this class with the specified name.static Madkit.LevelOption[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf
Methods inherited from interface madkit.kernel.MadkitOption
name
-
Enum Constant Details
-
agentLogLevel
Option defining the default agent log level for newly launched agents. Default value is "INFO". This value could be overridden individually by agents usingAbstractAgent.setLogLevel(Level)
.Example:
- --agentLogLevel OFF
- --agentLogLevel ALL
- --agentLogLevel FINE
- See Also:
-
AbstractAgent.logger
Logger
AbstractAgent.getMadkitProperty(String)
AbstractAgent.setMadkitProperty(String, String)
-
kernelLogLevel
Only useful for kernel developers -
guiLogLevel
Only useful for kernel developers -
madkitLogLevel
Can be used to make MaDKit quiet -
warningLogLevel
Deprecated.as of MaDKit 5.2, replaced byAgentLogger.enableCGRWarnings()
now useless- Since:
- MaDKit 5
- See Also:
-
AbstractAgent.logger
Logger
AbstractAgent.getMadkitProperty(String)
AbstractAgent.setMadkitProperty(String, String)
-
networkLogLevel
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
getValue
-
toString
Returns the constant's name prefixed by "--
" so that it could interpreted as an option of the command line or inMadkit(String...)
.- Specified by:
toString
in interfaceMadkitOption
- Overrides:
toString
in classEnum<Madkit.LevelOption>
- Returns:
- The command line form for this option, with -- in front of
the option's name, i.e.
--optionName
-
AgentLogger.enableCGRWarnings()