Class DeviceInfo


  • public class DeviceInfo
    extends Object
    The DeviceInfo class uniquely represents one device with the device manufacturer name, the device model.
    • Constructor Detail

      • DeviceInfo

        public DeviceInfo​(@NotBlank
                          @NotBlank String deviceManufacturer,
                          @NotBlank
                          @NotBlank String deviceModel)
        Instantiates a new DeviceInfo.
        Parameters:
        deviceManufacturer - represents the name of the device manufacturer.
        deviceModel - represents the name of the device model.
      • DeviceInfo

        public DeviceInfo​(@NotBlank
                          @NotBlank String deviceManufacturer,
                          @NotBlank
                          @NotBlank String deviceModel,
                          @Null
                          @Null Set<DeviceCommand> supportedCommands)
      • DeviceInfo

        public DeviceInfo​(@NotNull
                          @NotNull Map<String,​String> properties)
    • Method Detail

      • getAttributes

        public Map<String,​Object> getAttributes()
        This method returns the manufacturer, model and the supported commands for a device
        Returns:
        Map The resultant map consisting of the attributes of the device