Class 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 short ACTIVATION  
      static short CANCEL  
      static short FAILURE  
      static short SUCCESS  
    • Constructor Summary

      Constructors 
      Constructor Description
      GoalEvent()  
    • Method Summary

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

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

      • GoalEvent

        public GoalEvent()
    • 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