java.lang.Object
com.smartdevicelink.proxy.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 |
public static final java.lang.String KEY_TYPE
public static final java.lang.String KEY_RANGE
public static final java.lang.String KEY_LEVEL
public static final java.lang.String KEY_LEVEL_STATE
public static final java.lang.String KEY_CAPACITY
public static final java.lang.String KEY_CAPACITY_UNIT
From Class | Fields |
---|---|
com.smartdevicelink.proxy.RPCStruct | KEY_BULK_DATA, KEY_PROTECTED, store |
Constructs a new FuelRange object
public FuelRange()
Constructs a new FuelRange object indicated by the Hashtable parameter
public FuelRange(java.util.Hashtable<java.lang.String, java.lang.Object> hash)
Sets the type portion of the FuelRange class
public com.smartdevicelink.proxy.rpc.FuelRange setType(FuelType fuelType)
Gets the type portion of the FuelRange class
public com.smartdevicelink.proxy.rpc.enums.FuelType getType()
Gets the range portion of the FuelRange class
public java.lang.Float getRange()
Sets the range portion of the FuelRange class
public com.smartdevicelink.proxy.rpc.FuelRange setRange(Float range)
Sets the level.
public com.smartdevicelink.proxy.rpc.FuelRange setLevel(Float level)
Gets the level.
public java.lang.Float getLevel()
Sets the levelState.
public com.smartdevicelink.proxy.rpc.FuelRange setLevelState(ComponentVolumeStatus levelState)
Gets the levelState.
public com.smartdevicelink.proxy.rpc.enums.ComponentVolumeStatus getLevelState()
Sets the capacity.
public com.smartdevicelink.proxy.rpc.FuelRange setCapacity(Float capacity)
Gets the capacity.
public java.lang.Float getCapacity()
Sets the capacityUnit.
public com.smartdevicelink.proxy.rpc.FuelRange setCapacityUnit(CapacityUnit capacityUnit)
Gets the capacityUnit.
public com.smartdevicelink.proxy.rpc.enums.CapacityUnit getCapacityUnit()
From Class | Methods |
---|---|
com.smartdevicelink.proxy.RPCStruct | getStoreValue, getStore, deserializeJSON, serializeJSON, serializeJSON, format, getBulkData, setBulkData, setPayloadProtected, isPayloadProtected, getMessageTypeName, hasKey, setValue, getValue, getObject, formatObject, getValueForString, getString, getInteger, getDouble, getFloat, getBoolean, getLong, clone, equals, hashCode |
java.lang.Object | getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize |