public abstract class

DiagnosticMessage

extends KeyedMessage
java.lang.Object
   ↳ com.openxc.messages.VehicleMessage
     ↳ com.openxc.messages.KeyedMessage
       ↳ com.openxc.messages.DiagnosticMessage
Known Direct Subclasses

Class Overview

An abstract base class to hold common fields and logic for diagnostic requests and responses. Diagnostic messages are keyed on the bus, message ID, mode and PID (if set).

Summary

Constants
String BUS_KEY
String ID_KEY
String MODE_KEY
String PAYLOAD_KEY
String PID_KEY
[Expand]
Inherited Constants
From class com.openxc.messages.VehicleMessage
From interface android.os.Parcelable
Fields
protected static final Range<Integer> BUS_RANGE
protected static final Range<Integer> MODE_RANGE
[Expand]
Inherited Fields
From class com.openxc.messages.VehicleMessage
Public Constructors
DiagnosticMessage(int busId, int id, int mode)
DiagnosticMessage(int busId, int id, int mode, int pid)
Protected Constructors
DiagnosticMessage()
Public Methods
boolean equals(Object obj)
int getBusId()
int getId()
MessageKey getKey()
Return the identifying key for this message.
int getMode()
byte[] getPayload()
Integer getPid()
boolean hasPayload()
boolean hasPid()
void setPayload(byte[] payload)
void setPid(int pid)
void writeToParcel(Parcel out, int flags)
Protected Methods
void readFromParcel(Parcel in)
[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 ID_KEY

Constant Value: "id"

protected static final String MODE_KEY

Constant Value: "mode"

protected static final String PAYLOAD_KEY

Constant Value: "payload"

protected static final String PID_KEY

Constant Value: "pid"

Fields

protected static final Range<Integer> BUS_RANGE

protected static final Range<Integer> MODE_RANGE

Public Constructors

public DiagnosticMessage (int busId, int id, int mode)

public DiagnosticMessage (int busId, int id, int mode, int pid)

Protected Constructors

protected DiagnosticMessage ()

Public Methods

public boolean equals (Object obj)

public int getBusId ()

public int getId ()

public MessageKey getKey ()

Return the identifying key for this message.

public int getMode ()

public byte[] getPayload ()

public Integer getPid ()

public boolean hasPayload ()

public boolean hasPid ()

public void setPayload (byte[] payload)

public void setPid (int pid)

public void writeToParcel (Parcel out, int flags)

Protected Methods

protected void readFromParcel (Parcel in)