public class DatalogicDeviceResponse
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static interface |
DatalogicDeviceResponse.Callback
Callback called on receiving answer from device
|
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DEVICE_NOT_CONNECTED_ERROR
Data not sent because device is not connected
|
static java.lang.String |
ON_WAIT_ANOTHER_MSG_RESPONSE_ERROR
Data not sent, because of a previous message exchange not yet ended.
|
static java.lang.String |
TIMEOUT_ERROR
Data not received because of a timeout occurred
|
Modifier | Constructor and Description |
---|---|
protected |
DatalogicDeviceResponse() |
protected |
DatalogicDeviceResponse(DatalogicReceivedData dataReceived) |
Modifier and Type | Method and Description |
---|---|
DatalogicReceivedData |
getDataReceived() |
java.lang.String |
getDataSent() |
java.lang.String |
getErrorCode() |
java.lang.Object |
getValue() |
boolean |
isOnError() |
protected void |
setDataReceived(DatalogicReceivedData dataReceived) |
protected void |
setDataSent(java.lang.String dataSent) |
protected void |
setErrorCode(java.lang.String errorCode) |
protected void |
setValue(java.lang.Object value)
Set the received value
|
java.lang.String |
toString() |
public static final java.lang.String TIMEOUT_ERROR
public static final java.lang.String ON_WAIT_ANOTHER_MSG_RESPONSE_ERROR
public static final java.lang.String DEVICE_NOT_CONNECTED_ERROR
protected DatalogicDeviceResponse()
protected DatalogicDeviceResponse(DatalogicReceivedData dataReceived)
public java.lang.String getErrorCode()
protected void setErrorCode(java.lang.String errorCode)
public java.lang.String getDataSent()
protected void setDataSent(java.lang.String dataSent)
public DatalogicReceivedData getDataReceived()
protected void setDataReceived(DatalogicReceivedData dataReceived)
public java.lang.Object getValue()
protected void setValue(java.lang.Object value)
value
- the received valuepublic boolean isOnError()
public java.lang.String toString()
toString
in class java.lang.Object