public class

CanMessage

extends KeyedMessage
java.lang.Object
   ↳ com.openxc.messages.VehicleMessage
     ↳ com.openxc.messages.KeyedMessage
       ↳ com.openxc.messages.CanMessage

Class Overview

A VehicleMessage that is a low-level CAN message. A CAN message is keyed on the bus and message ID.

Summary

Constants
String BUS_KEY
String DATA_KEY
String ID_KEY
[Expand]
Inherited Constants
From class com.openxc.messages.VehicleMessage
From interface android.os.Parcelable
[Expand]
Inherited Fields
From class com.openxc.messages.VehicleMessage
Public Constructors
CanMessage(int canBus, int id, byte[] data)
Protected Constructors
CanMessage(Parcel in)
Public Methods
int compareTo(VehicleMessage other)
Sort by bus, then by message ID.
static boolean containsRequiredFields(Set<String> fields)
boolean equals(Object obj)
int getBusId()
byte[] getData()
int getId()
MessageKey getKey()
Return the identifying key for this message.
void readFromParcel(Parcel in)
String toString()
void writeToParcel(Parcel out, int flags)
[Expand]
Inherited Methods
From class com.openxc.messages.KeyedMessage
From class com.openxc.messages.VehicleMessage
From class java.lang.Object
From interface android.os.Parcelable
From interface java.lang.Comparable

Constants

protected static final String BUS_KEY

Constant Value: "bus"

protected static final String DATA_KEY

Constant Value: "data"

protected static final String ID_KEY

Constant Value: "id"

Public Constructors

public CanMessage (int canBus, int id, byte[] data)

Protected Constructors

protected CanMessage (Parcel in)

Public Methods

public int compareTo (VehicleMessage other)

Sort by bus, then by message ID.

public static boolean containsRequiredFields (Set<String> fields)

public boolean equals (Object obj)

public int getBusId ()

public byte[] getData ()

public int getId ()

public MessageKey getKey ()

Return the identifying key for this message.

public void readFromParcel (Parcel in)

public String toString ()

public void writeToParcel (Parcel out, int flags)