Class MotivatorType


  • public class MotivatorType
    extends java.lang.Object
    Author:
    Meiyii Lim Class that implements the Enumerable for PSI built-in motivators
    • Constructor Summary

      Constructors 
      Constructor Description
      MotivatorType()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.String GetName​(short motivatorType)
      Gets the motivator's name, given its identifier
      static int numberOfTypes()  
      static short ParseType​(java.lang.String motivatorType)
      Parses a string that corresponds to the motivator type and returns the appropriate motivator type (enumerable)
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • MotivatorType

        public MotivatorType()
    • Method Detail

      • numberOfTypes

        public static int numberOfTypes()
      • ParseType

        public static short ParseType​(java.lang.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 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