Class EventsKeeper


  • public class EventsKeeper
    extends java.lang.Object
    Class that keeps all events and collect them
    • Field Detail

      • events

        private java.util.List<Event> events
    • Constructor Detail

      • EventsKeeper

        public EventsKeeper()
    • Method Detail

      • addInteractionEvent

        public void addInteractionEvent​(java.lang.String from,
                                        AbstractDevice device)
        Creating a new interaction event for reports and adds it to the list
        Parameters:
        from - initiator of interaction
        device - object of interaction
      • addRepairEvent

        public void addRepairEvent​(java.lang.String from,
                                   AbstractDevice device)
        Creating a new repair event for reports and adds it to the list
        Parameters:
        from - initiator of interaction
        device - object of interaction
      • addWeatherEvent

        public void addWeatherEvent​(java.lang.String from,
                                    AbstractDevice device)
        Creating a new weather event for reports and adds it to the list
        Parameters:
        from - initiator of interaction
        device - object of interaction
      • addStrategyEvent

        public void addStrategyEvent​(java.lang.String from,
                                     AbstractDevice device)
        Creating a new strategy event for reports and adds it to the list
        Parameters:
        from - initiator of interaction
        device - object of interaction
      • getEvents

        public java.util.List<Event> getEvents()