Class MotivatorType

java.lang.Object
FAtiMA.motivationalSystem.MotivatorType

public class MotivatorType extends Object
Author:
Meiyii Lim Class that implements the Enumerable for PSI built-in motivators
  • Field Details

  • Constructor Details

    • MotivatorType

      public MotivatorType()
  • Method Details

    • numberOfTypes

      public static int numberOfTypes()
    • ParseType

      public static short ParseType(String motivatorType) throws InvalidMotivatorTypeException
      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

      public static String GetName(short motivatorType)
      Gets the motivator's name, given its identifier
      Parameters:
      motivatorType - id of the motivatorType
      Returns:
      the name of the motivatorType