Package FAtiMA.Core.util.enumerables
Class GoalEvent
- java.lang.Object
-
- FAtiMA.Core.util.enumerables.GoalEvent
-
public class GoalEvent extends java.lang.Object- Author:
- Joao Dias Class that implements the Enumerable for PSI built-in motivators
-
-
Field Summary
Fields Modifier and Type Field Description static shortACTIVATIONstatic shortCANCELstatic shortFAILUREstatic shortSUCCESS
-
Constructor Summary
Constructors Constructor Description GoalEvent()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.StringGetName(short goalEvent)Gets the Goal's event type, given its identifierstatic shortParseType(java.lang.String goalEvent)Parses a string that corresponds to the GoalEvent and returns the appropriate GoalEvent (enumerable)
-
-
-
Field Detail
-
ACTIVATION
public static final short ACTIVATION
- See Also:
- Constant Field Values
-
SUCCESS
public static final short SUCCESS
- See Also:
- Constant Field Values
-
FAILURE
public static final short FAILURE
- See Also:
- Constant Field Values
-
CANCEL
public static final short CANCEL
- See Also:
- Constant Field Values
-
-
Method Detail
-
ParseType
public static short ParseType(java.lang.String goalEvent)
Parses a string that corresponds to the GoalEvent and returns the appropriate GoalEvent (enumerable)- Parameters:
goalEvent- - the name of the type of goal event to search for- Returns:
- - the id of the goal event type
-
GetName
public static java.lang.String GetName(short goalEvent)
Gets the Goal's event type, given its identifier- Parameters:
goalEvent- id of the goal's event type- Returns:
- the name of the goal's event type
-
-