Package com.avrix.events
Class OnChangeWeatherEvent
java.lang.Object
com.avrix.events.Event
com.avrix.events.OnChangeWeatherEvent
Triggered when the weather is changing.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGetting the event nameabstract void
handleEvent
(String weather) Called Event Handling Method
-
Constructor Details
-
OnChangeWeatherEvent
public OnChangeWeatherEvent()
-
-
Method Details
-
getEventName
Getting the event name- Specified by:
getEventName
in classEvent
- Returns:
- name of the event being implemented
-
handleEvent
Called Event Handling Method- Parameters:
weather
- A string representing the weather. Can be either: "normal", "cloud", "rain", or "sunny"
-