Number
CapacityUnit
Number
ComponentVolumeStatus
Number
FuelType
FuelRange
FuelRange
FuelRange
FuelRange
FuelRange
FuelRange
Number
Get the Capacity
Kind: Instance method of FuelRange
Returns: Number
- the KEY_CAPACITY value
CapacityUnit
Get the CapacityUnit
Kind: Instance method of FuelRange
Returns: CapacityUnit
- the KEY_CAPACITY_UNIT value
Number
Get the Level
Kind: Instance method of FuelRange
Returns: Number
- the KEY_LEVEL value
ComponentVolumeStatus
Get the LevelState
Kind: Instance method of FuelRange
Returns: ComponentVolumeStatus
- the KEY_LEVEL_STATE value
Number
Get the Range
Kind: Instance method of FuelRange
Returns: Number
- the KEY_RANGE value
FuelType
Get the Type
Kind: Instance method of FuelRange
Returns: FuelType
- the KEY_TYPE value
FuelRange
Set the Capacity
Kind: Instance method of FuelRange
Returns: FuelRange
- The class instance for method chaining.
Param | Type | Description |
---|---|---|
capacity | Number |
The absolute capacity of this fuel type. - The desired Capacity. {'num_min_value': 0.0, 'num_max_value': 1000000.0} |
FuelRange
Set the CapacityUnit
Kind: Instance method of FuelRange
Returns: FuelRange
- The class instance for method chaining.
Param | Type | Description |
---|---|---|
unit | CapacityUnit |
The unit of the capacity of this fuel type such as liters for gasoline or kWh for batteries. - The desired CapacityUnit. |
FuelRange
Set the Level
Kind: Instance method of FuelRange
Returns: FuelRange
- The class instance for method chaining.
Param | Type | Description |
---|---|---|
level | Number |
The relative remaining capacity of this fuel type (percentage). - The desired Level. {'num_min_value': -6.0, 'num_max_value': 1000000.0} |
FuelRange
Set the LevelState
Kind: Instance method of FuelRange
Returns: FuelRange
- The class instance for method chaining.
Param | Type | Description |
---|---|---|
state | ComponentVolumeStatus |
The fuel level state - The desired LevelState. |
FuelRange
Set the Range
Kind: Instance method of FuelRange
Returns: FuelRange
- The class instance for method chaining.
Param | Type | Description |
---|---|---|
range | Number |
The estimate range in KM the vehicle can travel based on fuel level and consumption. - The desired Range. {'num_min_value': 0.0, 'num_max_value': 10000.0} |