Enum Class ProgressStep
- All Implemented Interfaces:
Serializable
,Comparable<ProgressStep>
,Constable
The
ProgressStep
enumeration defines the possible progress steps for a firmware update. The actual sequence
of the firmware update is defined by the operation ProgressCallback.defineSequence(ProgressStep...)
.- Author:
- Thomas Höfer - Initial contribution, Chris Jackson - Add WAITING
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionTheFirmwareUpdateHandler
is going to download / read the firmware image by reading the input stream fromFirmware.getBytes()
.TheFirmwareUpdateHandler
is going to reboot the device.TheFirmwareUpdateHandler
is going to transfer the firmware to the actual device.TheFirmwareUpdateHandler
is going to trigger the firmware update for the actual device.TheFirmwareUpdateHandler
is waiting for the device to initiate the transfer. -
Method Summary
Modifier and TypeMethodDescriptionstatic ProgressStep
Returns the enum constant of this class with the specified name.static ProgressStep[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
DOWNLOADING
TheFirmwareUpdateHandler
is going to download / read the firmware image by reading the input stream fromFirmware.getBytes()
. -
WAITING
TheFirmwareUpdateHandler
is waiting for the device to initiate the transfer. For battery devices that may wake up periodically, this may take some time. For mains devices this step may be very short or omitted. -
TRANSFERRING
TheFirmwareUpdateHandler
is going to transfer the firmware to the actual device. -
UPDATING
TheFirmwareUpdateHandler
is going to trigger the firmware update for the actual device. -
REBOOTING
TheFirmwareUpdateHandler
is going to reboot the device.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-