Class EventType


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

      Fields 
      Modifier and Type Field Description
      static short ACTION  
      static short GOAL  
    • Constructor Summary

      Constructors 
      Constructor Description
      EventType()  
    • Method Summary

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

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

      • EventType

        public EventType()
    • Method Detail

      • ParseType

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

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