public class FuelRange extends RPCStruct
Parameter List
| Param Name | Type | Description | Required | Notes | Version Available |
|---|---|---|---|---|---|
| type | FuelType | N | |||
| range | Float | The estimate range in KM the vehicle can travel based on fuel level and consumption. | N | {"num_min_value": 0.0, "num_max_value": 10000.0} | |
| level | Float | The relative remaining capacity of this fuel type (percentage). | N | {"num_min_value": -6.0, "num_max_value": 1000000.0} | SmartDeviceLink 7.0.0 |
| levelState | ComponentVolumeStatus | The fuel level state | N | SmartDeviceLink 7.0.0 | |
| capacity | Float | The absolute capacity of this fuel type. | N | {"num_min_value": 0.0, "num_max_value": 1000000.0} | SmartDeviceLink 7.0.0 |
| capacityUnit | CapacityUnit | The unit of the capacity of this fuel type such as liters for gasoline or kWh for batteries. | N | SmartDeviceLink 7.0.0 |
| Modifier and Type | Field and Description |
|---|---|
static String |
KEY_CAPACITY |
static String |
KEY_CAPACITY_UNIT |
static String |
KEY_LEVEL |
static String |
KEY_LEVEL_STATE |
static String |
KEY_RANGE |
static String |
KEY_TYPE |
KEY_BULK_DATA, KEY_PROTECTED, store| Constructor and Description |
|---|
FuelRange()
Constructs a new FuelRange object
|
FuelRange(Hashtable<String,Object> hash)
Constructs a new FuelRange object indicated by the Hashtable parameter
|
| Modifier and Type | Method and Description |
|---|---|
Float |
getCapacity()
Gets the capacity.
|
CapacityUnit |
getCapacityUnit()
Gets the capacityUnit.
|
Float |
getLevel()
Gets the level.
|
ComponentVolumeStatus |
getLevelState()
Gets the levelState.
|
Float |
getRange()
Gets the range portion of the FuelRange class
|
FuelType |
getType()
Gets the type portion of the FuelRange class
|
FuelRange |
setCapacity(Float capacity)
Sets the capacity.
|
FuelRange |
setCapacityUnit(CapacityUnit capacityUnit)
Sets the capacityUnit.
|
FuelRange |
setLevel(Float level)
Sets the level.
|
FuelRange |
setLevelState(ComponentVolumeStatus levelState)
Sets the levelState.
|
FuelRange |
setRange(Float range)
Sets the range portion of the FuelRange class
|
FuelRange |
setType(FuelType fuelType)
Sets the type portion of the FuelRange class
|
clone, deserializeJSON, equals, format, formatObject, getBoolean, getBulkData, getDouble, getFloat, getInteger, getLong, getMessageTypeName, getObject, getStore, getStoreValue, getString, getValue, getValueForString, hashCode, hasKey, isPayloadProtected, serializeJSON, serializeJSON, setBulkData, setPayloadProtected, setValuepublic static final String KEY_TYPE
public static final String KEY_RANGE
public static final String KEY_LEVEL
public static final String KEY_LEVEL_STATE
public static final String KEY_CAPACITY
public static final String KEY_CAPACITY_UNIT
public FuelRange setType(FuelType fuelType)
fuelType - the type of fuel related to this FuelRange object.FuelTypepublic FuelType getType()
public Float getRange()
public FuelRange setRange(Float range)
range - The estimate range in KM the vehicle can travel based on fuel level and consumption.public FuelRange setLevel(Float level)
level - The relative remaining capacity of this fuel type (percentage).
{"num_min_value": -6.0, "num_max_value": 1000000.0}public Float getLevel()
public FuelRange setLevelState(ComponentVolumeStatus levelState)
levelState - The fuel level statepublic ComponentVolumeStatus getLevelState()
public FuelRange setCapacity(Float capacity)
capacity - The absolute capacity of this fuel type.
{"num_min_value": 0.0, "num_max_value": 1000000.0}public Float getCapacity()
public FuelRange setCapacityUnit(CapacityUnit capacityUnit)
capacityUnit - The unit of the capacity of this fuel type such as liters for gasoline or kWh for
batteries.public CapacityUnit getCapacityUnit()