cz.cuni.amis.pogamut.base.utils.logging.marks
Enum LogEventMark.Type

java.lang.Object
  extended by java.lang.Enum<LogEventMark.Type>
      extended by cz.cuni.amis.pogamut.base.utils.logging.marks.LogEventMark.Type
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<LogEventMark.Type>
Enclosing class:
LogEventMark

public static enum LogEventMark.Type
extends java.lang.Enum<LogEventMark.Type>

Type of LogEventMark.


Enum Constant Summary
END_EVENT
          End mark of event with variable duration, shoudn't be created directly, but through LogEventMark.getEndMark() Example: bot picked health pack, end event "bot is low on health"
FIXED_DURATION
          Event that lasts for certain specified duration.
SINGLE_EVENT
          Single time event.
START_EVENT
          Used as start mark of event that has variable duration.
 
Method Summary
static LogEventMark.Type valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static LogEventMark.Type[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

SINGLE_EVENT

public static final LogEventMark.Type SINGLE_EVENT
Single time event. Event of this type has no duration,

Example: I have died.


FIXED_DURATION

public static final LogEventMark.Type FIXED_DURATION
Event that lasts for certain specified duration.

Example: Item taken, won't spawn for 32 seconds


START_EVENT

public static final LogEventMark.Type START_EVENT
Used as start mark of event that has variable duration. This ends only when corresponding end event is send.

Example: bot has been hurt, start event "bot is low on health"


END_EVENT

public static final LogEventMark.Type END_EVENT
End mark of event with variable duration, shoudn't be created directly, but through LogEventMark.getEndMark() Example: bot picked health pack, end event "bot is low on health"

Method Detail

values

public static LogEventMark.Type[] 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 (LogEventMark.Type c : LogEventMark.Type.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static LogEventMark.Type 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 name
java.lang.NullPointerException - if the argument is null