EnergyProfile


@CarProtocol
@RequiresCarApi(value = 3)
public final class EnergyProfile


Information about car hardware fuel profile such as fuel types and connector ports.

Summary

Nested types

public final class EnergyProfile.Builder

A builder of EnergyProfile.

Constants

static final int

CHAdeMo fast charger connector

static final int

Combined Charging System Combo 1

static final int

Combined Charging System Combo 2

static final int

GBT_AC Fast Charging Standard

static final int

GBT_DC Fast Charging Standard

static final int

Connector type SAE J1772

static final int

IEC 62196 Type 2 connector

static final int

Connector type to use when no other types apply.

static final int

IEC_TYPE_3_AC connector

static final int

High Power Wall Charger of Tesla

static final int

Connector of Tesla Roadster

static final int

Supercharger of Tesla

static final int

Unknown connector type.

static final int

Biodiesel

static final int

Compressed natural gas

static final int

#1 Grade Diesel

static final int

#2 Grade Diesel

static final int

85% ethanol/gasoline blend

static final int

Electric

static final int

Hydrogen fuel cell

static final int

Leaded gasoline

static final int

Liquified natural gas

static final int

Liquified petroleum gas

static final int

Fuel type to use when no other types apply.

static final int

Unknown fuel type

static final int

Unleaded gasoline

Public methods

boolean
@NonNull CarValue<List<Integer>>

Returns an array of the available EV connectors.

@NonNull CarValue<List<Integer>>

Returns an array of the available fuel types.

int
@NonNull String

Constants

EVCONNECTOR_TYPE_CHADEMO

Added in 1.1.0
public static final int EVCONNECTOR_TYPE_CHADEMO = 3

CHAdeMo fast charger connector

EVCONNECTOR_TYPE_COMBO_1

Added in 1.1.0
public static final int EVCONNECTOR_TYPE_COMBO_1 = 4

Combined Charging System Combo 1

EVCONNECTOR_TYPE_COMBO_2

Added in 1.1.0
public static final int EVCONNECTOR_TYPE_COMBO_2 = 5

Combined Charging System Combo 2

EVCONNECTOR_TYPE_GBT

Added in 1.1.0
public static final int EVCONNECTOR_TYPE_GBT = 9

GBT_AC Fast Charging Standard

EVCONNECTOR_TYPE_GBT_DC

Added in 1.1.0
public static final int EVCONNECTOR_TYPE_GBT_DC = 10

GBT_DC Fast Charging Standard

EVCONNECTOR_TYPE_J1772

Added in 1.1.0
public static final int EVCONNECTOR_TYPE_J1772 = 1

Connector type SAE J1772

EVCONNECTOR_TYPE_MENNEKES

Added in 1.1.0
public static final int EVCONNECTOR_TYPE_MENNEKES = 2

IEC 62196 Type 2 connector

EVCONNECTOR_TYPE_OTHER

Added in 1.1.0
public static final int EVCONNECTOR_TYPE_OTHER = 101

Connector type to use when no other types apply.

EVCONNECTOR_TYPE_SCAME

Added in 1.1.0
public static final int EVCONNECTOR_TYPE_SCAME = 11

IEC_TYPE_3_AC connector

EVCONNECTOR_TYPE_TESLA_HPWC

Added in 1.1.0
public static final int EVCONNECTOR_TYPE_TESLA_HPWC = 7

High Power Wall Charger of Tesla

EVCONNECTOR_TYPE_TESLA_ROADSTER

Added in 1.1.0
public static final int EVCONNECTOR_TYPE_TESLA_ROADSTER = 6

Connector of Tesla Roadster

EVCONNECTOR_TYPE_TESLA_SUPERCHARGER

Added in 1.1.0
public static final int EVCONNECTOR_TYPE_TESLA_SUPERCHARGER = 8

Supercharger of Tesla

EVCONNECTOR_TYPE_UNKNOWN

Added in 1.1.0
public static final int EVCONNECTOR_TYPE_UNKNOWN = 0

Unknown connector type.

FUEL_TYPE_BIODIESEL

Added in 1.1.0
public static final int FUEL_TYPE_BIODIESEL = 5

Biodiesel

FUEL_TYPE_CNG

Added in 1.1.0
public static final int FUEL_TYPE_CNG = 8

Compressed natural gas

FUEL_TYPE_DIESEL_1

Added in 1.1.0
public static final int FUEL_TYPE_DIESEL_1 = 3

#1 Grade Diesel

FUEL_TYPE_DIESEL_2

Added in 1.1.0
public static final int FUEL_TYPE_DIESEL_2 = 4

#2 Grade Diesel

FUEL_TYPE_E85

Added in 1.1.0
public static final int FUEL_TYPE_E85 = 6

85% ethanol/gasoline blend

FUEL_TYPE_ELECTRIC

Added in 1.1.0
public static final int FUEL_TYPE_ELECTRIC = 10

Electric

FUEL_TYPE_HYDROGEN

Added in 1.1.0
public static final int FUEL_TYPE_HYDROGEN = 11

Hydrogen fuel cell

FUEL_TYPE_LEADED

Added in 1.1.0
public static final int FUEL_TYPE_LEADED = 2

Leaded gasoline

FUEL_TYPE_LNG

Added in 1.1.0
public static final int FUEL_TYPE_LNG = 9

Liquified natural gas

FUEL_TYPE_LPG

Added in 1.1.0
public static final int FUEL_TYPE_LPG = 7

Liquified petroleum gas

FUEL_TYPE_OTHER

Added in 1.1.0
public static final int FUEL_TYPE_OTHER = 12

Fuel type to use when no other types apply.

FUEL_TYPE_UNKNOWN

Added in 1.1.0
public static final int FUEL_TYPE_UNKNOWN = 0

Unknown fuel type

FUEL_TYPE_UNLEADED

Added in 1.1.0
public static final int FUEL_TYPE_UNLEADED = 1

Unleaded gasoline

Public methods

equals

public boolean equals(@Nullable Object other)

getEvConnectorTypes

Added in 1.1.0
public @NonNull CarValue<List<Integer>> getEvConnectorTypes()

Returns an array of the available EV connectors.

If a vehicle does not know the EV connector type it will return EVCONNECTOR_TYPE_UNKNOWN or STATUS_UNIMPLEMENTED. If the value is known but not in the current list EVCONNECTOR_TYPE_UNKNOWN will be returned.

getFuelTypes

Added in 1.1.0
public @NonNull CarValue<List<Integer>> getFuelTypes()

Returns an array of the available fuel types.

If a vehicle does not know the fuel type it will return FUEL_TYPE_UNKNOWN or STATUS_UNIMPLEMENTED. If the value is known but not in the current list EVCONNECTOR_TYPE_UNKNOWN will be returned.

hashCode

public int hashCode()

toString

public @NonNull String toString()