Package laas.openrobots.ontology.helpers
Enum Logger.Colors
- java.lang.Object
-
- java.lang.Enum<Logger.Colors>
-
- laas.openrobots.ontology.helpers.Logger.Colors
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<Logger.Colors>
- Enclosing class:
- Logger
public static enum Logger.Colors extends java.lang.Enum<Logger.Colors>
-
-
Field Summary
Fields Modifier and Type Field Description static java.util.Map<java.lang.String,Logger.Colors>
agentsColor
java.lang.String
code
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
format(java.lang.String msg)
java.lang.String
formatBold(java.lang.String msg)
static Logger.Colors
getColorForAgent(java.lang.String agent)
static Logger.Colors
random()
static Logger.Colors
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static Logger.Colors[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
BLUE
public static final Logger.Colors BLUE
-
GREEN
public static final Logger.Colors GREEN
-
RED
public static final Logger.Colors RED
-
YELLOW
public static final Logger.Colors YELLOW
-
PURPLE
public static final Logger.Colors PURPLE
-
NONE
public static final Logger.Colors NONE
-
-
Field Detail
-
code
public java.lang.String code
-
agentsColor
public static java.util.Map<java.lang.String,Logger.Colors> agentsColor
-
-
Method Detail
-
values
public static Logger.Colors[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (Logger.Colors c : Logger.Colors.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Logger.Colors valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
format
public java.lang.String format(java.lang.String msg)
-
formatBold
public java.lang.String formatBold(java.lang.String msg)
-
random
public static Logger.Colors random()
-
getColorForAgent
public static Logger.Colors getColorForAgent(java.lang.String agent)
-
-