public enum LoggingAction extends Enum<LoggingAction>
Enum Constant and Description |
---|
CGR_WARNINGS |
LOG_LEVEL |
Modifier and Type | Method and Description |
---|---|
Action |
getActionFor(AbstractAgent agent,
Object... parameters)
Builds an action that will make the agent do the corresponding behavior
|
ActionInfo |
getActionInfo() |
static LoggingAction |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static LoggingAction[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final LoggingAction LOG_LEVEL
public static final LoggingAction CGR_WARNINGS
public static LoggingAction[] values()
for (LoggingAction c : LoggingAction.values()) System.out.println(c);
public static LoggingAction 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 ActionInfo getActionInfo()
public Action getActionFor(AbstractAgent agent, Object... parameters)
agent
- the agent on which this action will operateparameters
- the info to be used
Fabien Michel, Olivier Gutknecht, Jacques Ferber - February 17 2020