Package FAtiMA.motivationalSystem
Class MotivatorType
- java.lang.Object
-
- FAtiMA.motivationalSystem.MotivatorType
-
public class MotivatorType extends java.lang.Object- Author:
- Meiyii Lim Class that implements the Enumerable for PSI built-in motivators
-
-
Field Summary
Fields Modifier and Type Field Description static shortAFFILIATIONstatic shortCERTAINTYstatic shortCOMPETENCEstatic shortENERGYstatic shortINTEGRITYstatic shortNO_MOTIVATORS
-
Constructor Summary
Constructors Constructor Description MotivatorType()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.StringGetName(short motivatorType)Gets the motivator's name, given its identifierstatic intnumberOfTypes()static shortParseType(java.lang.String motivatorType)Parses a string that corresponds to the motivator type and returns the appropriate motivator type (enumerable)
-
-
-
Field Detail
-
AFFILIATION
public static final short AFFILIATION
- See Also:
- Constant Field Values
-
INTEGRITY
public static final short INTEGRITY
- See Also:
- Constant Field Values
-
ENERGY
public static final short ENERGY
- See Also:
- Constant Field Values
-
CERTAINTY
public static final short CERTAINTY
- See Also:
- Constant Field Values
-
COMPETENCE
public static final short COMPETENCE
- See Also:
- Constant Field Values
-
NO_MOTIVATORS
public static final short NO_MOTIVATORS
- See Also:
- Constant Field Values
-
-
Method Detail
-
numberOfTypes
public static int numberOfTypes()
-
ParseType
public static short ParseType(java.lang.String motivatorType) throws InvalidMotivatorTypeExceptionParses 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
public static java.lang.String GetName(short motivatorType)
Gets the motivator's name, given its identifier- Parameters:
motivatorType- id of the motivatorType- Returns:
- the name of the motivatorType
-
-