NumberCapacityUnitNumberComponentVolumeStatusNumberFuelTypeFuelRangeFuelRangeFuelRangeFuelRangeFuelRangeFuelRangeNumberGet the Capacity
Kind: Instance method of FuelRange
Returns: Number - the KEY_CAPACITY value
CapacityUnitGet the CapacityUnit
Kind: Instance method of FuelRange
Returns: CapacityUnit - the KEY_CAPACITY_UNIT value
NumberGet the Level
Kind: Instance method of FuelRange
Returns: Number - the KEY_LEVEL value
ComponentVolumeStatusGet the LevelState
Kind: Instance method of FuelRange
Returns: ComponentVolumeStatus - the KEY_LEVEL_STATE value
NumberGet the Range
Kind: Instance method of FuelRange
Returns: Number - the KEY_RANGE value
FuelTypeGet the Type
Kind: Instance method of FuelRange
Returns: FuelType - the KEY_TYPE value
FuelRangeSet 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} |
FuelRangeSet 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. |
FuelRangeSet 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} |
FuelRangeSet 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. |
FuelRangeSet 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} |