Class OnChangeWeatherEvent

java.lang.Object
com.avrix.events.Event
com.avrix.events.OnChangeWeatherEvent

public abstract class OnChangeWeatherEvent extends Event
Triggered when the weather is changing.
  • Constructor Details

    • OnChangeWeatherEvent

      public OnChangeWeatherEvent()
  • Method Details

    • getEventName

      public String getEventName()
      Getting the event name
      Specified by:
      getEventName in class Event
      Returns:
      name of the event being implemented
    • handleEvent

      public abstract void handleEvent(String weather)
      Called Event Handling Method
      Parameters:
      weather - A string representing the weather. Can be either: "normal", "cloud", "rain", or "sunny"