CalibrationEventType

public class CalibrationEventType

This class identifies the possible event types of a CalibrationEvent.

Every type gives full information of what happened, divided by priority, and with an user-friendly description.

Every possible event is already created and is reused to improve performance. The objects can be compared directly.

See also: CalibrationEvent

Fields

CALIBRATION_DELETED

public static final CalibrationInfoEventType CALIBRATION_DELETED

A calibration deleted event. Calibration was deleted successfully.

CALIBRATION_DONE

public static final CalibrationInfoEventType CALIBRATION_DONE

A calibration done event. Calibration was completed successfully.

CALIBRATION_FAILED

public static final CalibrationErrorEventType CALIBRATION_FAILED

A calibration failed event. The remote device reported that the calibration operation failed or the connection was lost before the operation ended.

CALIBRATION_INVALID_RESPONSE

public static final CalibrationErrorEventType CALIBRATION_INVALID_RESPONSE

A invalid response error event. The remote device sent an invalid data packet.

CALIBRATION_INVALID_STATE

public static final CalibrationErrorEventType CALIBRATION_INVALID_STATE

A invalid state error event. The remote device sent a calibration data packet out-of-sync.

CALIBRATION_STOPPED

public static final CalibrationInfoEventType CALIBRATION_STOPPED

A calibration stopped event. Calibration was stopped before finishing.

CALIBRATION_TIMEOUT

public static final CalibrationErrorEventType CALIBRATION_TIMEOUT

A calibration timeout error event. The remote device took too long to respond.

TYPE_ERROR

public static final int TYPE_ERROR

A constant describing a error type of event.

TYPE_INFO

public static final int TYPE_INFO

A constant describing an information type of event.

code

public final int code

Event code. An integer value.

description

public final String description

Human readable description of the event.

type

public final int type

Event type. Can be TYPE_INFO or TYPE_ERROR

Methods

equals

public boolean equals(Object o)

Compares the passed object with this CalibrationEventType.

Parameters
  • o – The object to be compared.

Returns

true if the object is equal to this CalibrationEventType.