Package FAtiMA.Core.util.enumerables
Class EventType
- java.lang.Object
-
- FAtiMA.Core.util.enumerables.EventType
-
public class EventType extends java.lang.Object- Author:
- Meiyii Lim 07/01/10 Class that implements the Enumerable for the different types of event - goal or action
-
-
Constructor Summary
Constructors Constructor Description EventType()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.StringGetName(short eventType)Gets the event type, given its identifierstatic shortParseType(java.lang.String eventType)Parses a string that corresponds to the EventType and returns the appropriate EventType (enumerable)
-
-
-
Field Detail
-
GOAL
public static final short GOAL
- See Also:
- Constant Field Values
-
ACTION
public static final short ACTION
- See Also:
- Constant Field Values
-
-
Method Detail
-
ParseType
public static short ParseType(java.lang.String eventType)
Parses a string that corresponds to the EventType and returns the appropriate EventType (enumerable)- Parameters:
eventType- - the name of the type of goal event to search for- Returns:
- - the id of the event type
-
GetName
public static java.lang.String GetName(short eventType)
Gets the event type, given its identifier- Parameters:
eventType- id of the event type- Returns:
- the name of the event type
-
-