Class ActionEvent


  • public class ActionEvent
    extends java.lang.Object
    Author:
    Meiyii Lim 07/01/10 Class that implements the Enumerable for the different types of action event - success or failure
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static short FAILURE  
      static short SUCCESS  
    • Constructor Summary

      Constructors 
      Constructor Description
      ActionEvent()  
    • Method Summary

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

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

      • ActionEvent

        public ActionEvent()
    • Method Detail

      • ParseType

        public static short ParseType​(java.lang.String actionEvent)
        Parses a string that corresponds to the ActionEvent and returns the appropriate ActionEvent (enumerable)
        Parameters:
        actionEvent - - the name of the type of goal event to search for
        Returns:
        - the id of the action event type
      • GetName

        public static java.lang.String GetName​(short actionEvent)
        Gets the Action's event type, given its identifier
        Parameters:
        actionEvent - id of the action's event type
        Returns:
        the name of the action's event type