public enum Pids01 extends java.lang.Enum<Pids01> implements Cmd
Enum Constant and Description |
---|
AIR_INTAKE_TEMP
Engine air intake temperature in degrees C.
|
AVAILABLE_PIDS
Get the list of available PIDs.
|
ENGINE_COOLANT_TEMP
Engine coolant temperature in degrees C.
|
RPM
Engine speed in rpm.
|
SPEED
Vehicle speed in km/h.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
id()
Unique identifier of the command.
|
boolean |
result(com.google.gson.JsonObject result,
byte[] data)
Process the reply into a result.
|
static Pids01 |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Pids01[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
void |
writeCmd(java.io.OutputStream out)
How the command is written to the serial port.
|
public static final Pids01 AVAILABLE_PIDS
public static final Pids01 ENGINE_COOLANT_TEMP
public static final Pids01 RPM
public static final Pids01 SPEED
public static final Pids01 AIR_INTAKE_TEMP
public static Pids01[] values()
for (Pids01 c : Pids01.values()) System.out.println(c);
public static Pids01 valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic java.lang.String id()
Cmd
public void writeCmd(java.io.OutputStream out) throws java.io.IOException
Cmd
public final boolean result(com.google.gson.JsonObject result, byte[] data)
Cmd
Copyright © 2016 The Apache Software Foundation. All Rights Reserved - bbe71fa-20161201-1641