ConnectionEvent

public abstract class ConnectionEvent extends Object

The events used internally inTagConnectionStateMachine.

Constructors

Name Description
public ConnectionEvent()

Methods

ofConnectionError

public static ConnectionEvent ofConnectionError(JacquardError error)

Parameters

Name Description
JacquardError error

ReturnValue

Name Description
ConnectionEvent

ofConnectionProgress

public static ConnectionEvent ofConnectionProgress()

ReturnValue

Name Description
ConnectionEvent

ofInitializationProgress

public static ConnectionEvent ofInitializationProgress()

ReturnValue

Name Description
ConnectionEvent

ofTagPaired

public static ConnectionEvent ofTagPaired( pair)

Parameters

Name Description
pair

ReturnValue

Name Description
ConnectionEvent

ofTagInitialized

public static ConnectionEvent ofTagInitialized(ConnectedJacquardTag tag)

Parameters

Name Description
ConnectedJacquardTag tag

ReturnValue

Name Description
ConnectionEvent

ofTagConfigured

public static ConnectionEvent ofTagConfigured(ConnectedJacquardTag tag)

Parameters

Name Description
ConnectedJacquardTag tag

ReturnValue

Name Description
ConnectionEvent

ofTagDisconnected

public static ConnectionEvent ofTagDisconnected(JacquardError error)

Parameters

Name Description
JacquardError error

ReturnValue

Name Description
ConnectionEvent

ofFirmwareTransferring

public static ConnectionEvent ofFirmwareTransferring(int progress)

Parameters

Name Description
int progress

ReturnValue

Name Description
ConnectionEvent

ofFirmwareExecuting

public static ConnectionEvent ofFirmwareExecuting(ConnectedJacquardTag tag)

Parameters

Name Description
ConnectedJacquardTag tag

ReturnValue

Name Description
ConnectionEvent

ofFirmwareTransferComplete

public static ConnectionEvent ofFirmwareTransferComplete(ConnectedJacquardTag tag)

Parameters

Name Description
ConnectedJacquardTag tag

ReturnValue

Name Description
ConnectionEvent

ofFirmwareUpdateInitiated

public static ConnectionEvent ofFirmwareUpdateInitiated(ConnectedJacquardTag tag)

Parameters

Name Description
ConnectedJacquardTag tag

ReturnValue

Name Description
ConnectionEvent

ofFirmwareUpdateError

public static ConnectionEvent ofFirmwareUpdateError(Throwable error)

Parameters

Name Description
Throwable error

ReturnValue

Name Description
ConnectionEvent

getType

public abstract Type getType()

ReturnValue

Name Description
Type

connectionError

public abstract JacquardError connectionError()

ReturnValue

Name Description
JacquardError

connectionProgress

public abstract void connectionProgress()

ReturnValue

Name Description
void

initializationProgress

public abstract void initializationProgress()

ReturnValue

Name Description
void

tagPaired

public abstract tagPaired()

ReturnValue

Name Description

tagInitialized

public abstract ConnectedJacquardTag tagInitialized()

ReturnValue

Name Description
ConnectedJacquardTag

tagConfigured

public abstract ConnectedJacquardTag tagConfigured()

ReturnValue

Name Description
ConnectedJacquardTag

tagDisconnected

public abstract JacquardError tagDisconnected()

ReturnValue

Name Description
JacquardError

firmwareUpdateInitiated

public abstract ConnectedJacquardTag firmwareUpdateInitiated()

ReturnValue

Name Description
ConnectedJacquardTag

firmwareTransferring

public abstract int firmwareTransferring()

Initiates firmware upload process

ReturnValue

Name Description
int

firmwareExecuting

public abstract ConnectedJacquardTag firmwareExecuting()

Initiates firmware execution process. This will disconnect the tag, once commands to execute the firmware sent to the Tag.

ReturnValue

Name Description
ConnectedJacquardTag

firmwareTransferComplete

public abstract ConnectedJacquardTag firmwareTransferComplete()

Indicates Firmware update process is completed.

ReturnValue

Name Description
ConnectedJacquardTag

firmwareUpdateError

public abstract Throwable firmwareUpdateError()

ReturnValue

Name Description
Throwable