Package FAtiMA.motivationalSystem
Class MotivatorType
java.lang.Object
FAtiMA.motivationalSystem.MotivatorType
- Author:
- Meiyii Lim Class that implements the Enumerable for PSI built-in motivators
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final shortstatic final shortstatic final shortstatic final shortstatic final shortstatic final short -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
AFFILIATION
public static final short AFFILIATION- See Also:
-
INTEGRITY
public static final short INTEGRITY- See Also:
-
ENERGY
public static final short ENERGY- See Also:
-
CERTAINTY
public static final short CERTAINTY- See Also:
-
COMPETENCE
public static final short COMPETENCE- See Also:
-
NO_MOTIVATORS
public static final short NO_MOTIVATORS- See Also:
-
-
Constructor Details
-
MotivatorType
public MotivatorType()
-
-
Method Details
-
numberOfTypes
public static int numberOfTypes() -
ParseType
Parses a string that corresponds to the motivator type and returns the appropriate motivator type (enumerable)- Parameters:
motivatorType- - the name of the motivator to search for- Returns:
- - the id of the motivator type
- Throws:
InvalidMotivatorTypeException
-
GetName
Gets the motivator's name, given its identifier- Parameters:
motivatorType- id of the motivatorType- Returns:
- the name of the motivatorType
-