Class RegionEvent

    • Constructor Detail

      • RegionEvent

        public RegionEvent​(RegionEvent.Type type,
                           Region region)
        Creates an event of a given type and for the specified region and the current time.
        Parameters:
        type - device event type
        region - event region subject
      • RegionEvent

        public RegionEvent​(RegionEvent.Type type,
                           Region region,
                           Set<DeviceId> deviceIds)
        Creates an event of a given type and for the specified region, device id list and the current time.
        Parameters:
        type - device event type
        region - event region subject
        deviceIds - optional set of device ids
      • RegionEvent

        public RegionEvent​(RegionEvent.Type type,
                           Region region,
                           Set<DeviceId> deviceIds,
                           long time)
        Creates an event of a given type and for the specified device and time.
        Parameters:
        type - device event type
        region - event region subject
        deviceIds - optional set of device ids
        time - occurrence time