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