public class

Command

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

Class Overview

A Command message defined by the OpenXC message format. Commands are keyed on the command name.

Summary

Nested Classes
enum Command.CommandType  
Constants
String ACTION_KEY
String COMMAND_KEY
String DIAGNOSTIC_REQUEST_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
Command(Command.CommandType command, String action)
Command(Command.CommandType command)
Command(DiagnosticRequest request, String action)
Protected Constructors
Command(Parcel in)
Command()
Public Methods
static boolean containsRequiredFields(Set<String> fields)
boolean equals(Object obj)
String getAction()
Command.CommandType getCommand()
DiagnosticRequest getDiagnosticRequest()
MessageKey getKey()
Return the identifying key for this message.
boolean hasAction()
String toString()
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 ACTION_KEY

Constant Value: "action"

protected static final String COMMAND_KEY

Constant Value: "command"

protected static final String DIAGNOSTIC_REQUEST_KEY

Constant Value: "request"

Public Constructors

public Command (Command.CommandType command, String action)

public Command (Command.CommandType command)

public Command (DiagnosticRequest request, String action)

Protected Constructors

protected Command (Parcel in)

protected Command ()

Public Methods

public static boolean containsRequiredFields (Set<String> fields)

public boolean equals (Object obj)

public String getAction ()

public Command.CommandType getCommand ()

public DiagnosticRequest getDiagnosticRequest ()

public MessageKey getKey ()

Return the identifying key for this message.

public boolean hasAction ()

public String toString ()

public void writeToParcel (Parcel out, int flags)

Protected Methods

protected void readFromParcel (Parcel in)