public class CanMessage extends KeyedMessage
VehicleMessage.Listener
Modifier and Type | Field and Description |
---|---|
protected static java.lang.String |
BUS_KEY |
protected static java.lang.String |
DATA_KEY |
protected static java.lang.String |
ID_KEY |
CREATOR, EXTRAS_KEY
Modifier | Constructor and Description |
---|---|
|
CanMessage(int canBus,
int id,
byte[] data) |
protected |
CanMessage(android.os.Parcel in) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(VehicleMessage other)
Sort by bus, then by message ID.
|
static boolean |
containsRequiredFields(java.util.Set<java.lang.String> fields) |
boolean |
equals(java.lang.Object obj) |
int |
getBusId() |
byte[] |
getData() |
int |
getId() |
MessageKey |
getKey()
Return the identifying key for this message.
|
void |
readFromParcel(android.os.Parcel in) |
java.lang.String |
toString() |
void |
writeToParcel(android.os.Parcel out,
int flags) |
setKey
asCanMessage, asCommandResponse, asDiagnosticRequest, asDiagnosticResponse, asEventedMessage, asKeyedMessage, asNamedMessage, asSimpleMessage, describeContents, getDate, getExtras, getTimestamp, hasExtras, isTimestamped, setExtras, setTimestamp, timestamp, untimestamp
protected static final java.lang.String ID_KEY
protected static final java.lang.String BUS_KEY
protected static final java.lang.String DATA_KEY
public CanMessage(int canBus, int id, byte[] data)
protected CanMessage(android.os.Parcel in)
public int getBusId()
public int getId()
public byte[] getData()
public MessageKey getKey()
KeyedMessage
getKey
in class KeyedMessage
public static boolean containsRequiredFields(java.util.Set<java.lang.String> fields)
public int compareTo(VehicleMessage other)
compareTo
in interface java.lang.Comparable<VehicleMessage>
compareTo
in class VehicleMessage
public boolean equals(java.lang.Object obj)
equals
in class VehicleMessage
public java.lang.String toString()
toString
in class VehicleMessage
public void writeToParcel(android.os.Parcel out, int flags)
writeToParcel
in interface android.os.Parcelable
writeToParcel
in class VehicleMessage
public void readFromParcel(android.os.Parcel in)
readFromParcel
in class VehicleMessage