public abstract class DiagnosticMessage extends KeyedMessage
VehicleMessage.Listener
Modifier and Type | Field and Description |
---|---|
protected static java.lang.String |
BUS_KEY |
protected static Range<java.lang.Integer> |
BUS_RANGE |
protected static java.lang.String |
ID_KEY |
protected static java.lang.String |
MODE_KEY |
protected static Range<java.lang.Integer> |
MODE_RANGE |
protected static java.lang.String |
PAYLOAD_KEY |
protected static java.lang.String |
PID_KEY |
CREATOR, EXTRAS_KEY
Modifier | Constructor and Description |
---|---|
protected |
DiagnosticMessage() |
|
DiagnosticMessage(int busId,
int id,
int mode) |
|
DiagnosticMessage(int busId,
int id,
int mode,
int pid) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
int |
getBusId() |
int |
getId() |
MessageKey |
getKey()
Return the identifying key for this message.
|
int |
getMode() |
byte[] |
getPayload() |
java.lang.Integer |
getPid() |
boolean |
hasPayload() |
boolean |
hasPid() |
protected void |
readFromParcel(android.os.Parcel in) |
void |
setPayload(byte[] payload) |
void |
setPid(int pid) |
void |
writeToParcel(android.os.Parcel out,
int flags) |
setKey
asCanMessage, asCommandResponse, asDiagnosticRequest, asDiagnosticResponse, asEventedMessage, asKeyedMessage, asNamedMessage, asSimpleMessage, compareTo, describeContents, getDate, getExtras, getTimestamp, hasExtras, isTimestamped, setExtras, setTimestamp, timestamp, toString, untimestamp
protected static final java.lang.String ID_KEY
protected static final java.lang.String BUS_KEY
protected static final java.lang.String MODE_KEY
protected static final java.lang.String PID_KEY
protected static final java.lang.String PAYLOAD_KEY
protected static final Range<java.lang.Integer> BUS_RANGE
protected static final Range<java.lang.Integer> MODE_RANGE
public DiagnosticMessage(int busId, int id, int mode)
public DiagnosticMessage(int busId, int id, int mode, int pid)
protected DiagnosticMessage()
public boolean hasPid()
public int getBusId()
public int getId()
public int getMode()
public java.lang.Integer getPid()
public byte[] getPayload()
public void setPid(int pid)
public boolean hasPayload()
public void setPayload(byte[] payload)
public MessageKey getKey()
KeyedMessage
getKey
in class KeyedMessage
public boolean equals(java.lang.Object obj)
equals
in class VehicleMessage
public void writeToParcel(android.os.Parcel out, int flags)
writeToParcel
in interface android.os.Parcelable
writeToParcel
in class VehicleMessage
protected void readFromParcel(android.os.Parcel in)
readFromParcel
in class VehicleMessage