FirmwareUpdateState

public abstract class FirmwareUpdateState extends Object

The states ofFirmwareUpdateStateMachine.

Constructors

Name Description
public FirmwareUpdateState()

Methods

ofIdle

public static FirmwareUpdateState ofIdle()

ReturnValue

Name Description
FirmwareUpdateState

ofPreparingToTransfer

public static FirmwareUpdateState ofPreparingToTransfer()

ReturnValue

Name Description
FirmwareUpdateState

ofTransferProgress

public static FirmwareUpdateState ofTransferProgress(int percentage)

Parameters

Name Description
int percentage

ReturnValue

Name Description
FirmwareUpdateState

ofTransferred

public static FirmwareUpdateState ofTransferred()

ReturnValue

Name Description
FirmwareUpdateState

ofExecuting

public static FirmwareUpdateState ofExecuting()

ReturnValue

Name Description
FirmwareUpdateState

ofCompleted

public static FirmwareUpdateState ofCompleted()

ReturnValue

Name Description
FirmwareUpdateState

ofStopped

public static FirmwareUpdateState ofStopped()

ReturnValue

Name Description
FirmwareUpdateState

ofError

public static FirmwareUpdateState ofError(Throwable error)

Parameters

Name Description
Throwable error

ReturnValue

Name Description
FirmwareUpdateState

getType

public abstract Type getType()

ReturnValue

Name Description
Type

idle

public abstract void idle()

ReturnValue

Name Description
void

preparingToTransfer

public abstract void preparingToTransfer()

ReturnValue

Name Description
void

transferProgress

public abstract int transferProgress()

ReturnValue

Name Description
int

transferred

public abstract void transferred()

ReturnValue

Name Description
void

executing

public abstract void executing()

ReturnValue

Name Description
void

completed

public abstract void completed()

ReturnValue

Name Description
void

stopped

public abstract void stopped()

ReturnValue

Name Description
void

error

public abstract Throwable error()

ReturnValue

Name Description
Throwable