diff options
author | Yevhenii Dementieiev (GitHub) <ydementieiev@luxoft.com> | 2020-02-17 15:23:34 +0200 |
---|---|---|
committer | Yevhenii Dementieiev (GitHub) <ydementieiev@luxoft.com> | 2020-02-28 10:31:16 +0200 |
commit | 546d496240502bd3d2c60881603959ff66ad87fb (patch) | |
tree | dcc7c09f50ad08997c10e840df198c865b9e3368 | |
parent | 180057f5c6d29f77c4fb9606e977867974f554e2 (diff) | |
download | sdl_core-impl/fuel_info_related_vehicle_date.tar.gz |
Updated HMI and MOBILE api for refactoring fuel information related vehicle dateimpl/fuel_info_related_vehicle_date
-rw-r--r-- | src/components/interfaces/HMI_API.xml | 70 | ||||
-rw-r--r-- | src/components/interfaces/MOBILE_API.xml | 155 |
2 files changed, 173 insertions, 52 deletions
diff --git a/src/components/interfaces/HMI_API.xml b/src/components/interfaces/HMI_API.xml index 9e8a32312f..f4a5b17045 100644 --- a/src/components/interfaces/HMI_API.xml +++ b/src/components/interfaces/HMI_API.xml @@ -79,6 +79,12 @@ </element> </enum> +<enum name="CapacityUnit"> + <element name="LITERS" /> + <element name="KILOWATTHOURS" /> + <element name="KILOGRAMS" /> +</enum> + <enum name="PredefinedWindows"> <element name="DEFAULT_WINDOW" value="0"> <description>The default window is a main window pre-created on behalf of the app.</description> @@ -856,14 +862,6 @@ </element> </enum> -<struct name="FuelRange"> - <param name="type" type="Common.FuelType" mandatory="false"/> - <param name="range" type="Float" minvalue="0" maxvalue="10000" mandatory="false"> - <description> - The estimate range in KM the vehicle can travel based on fuel level and consumption. - </description> - </param> -</struct> <enum name="ComponentVolumeStatus"> <description>The volume status of a vehicle component.</description> @@ -887,6 +885,27 @@ </element> </enum> +<struct name="FuelRange"> + <param name="type" type="Common.FuelType" mandatory="false"/> + <param name="range" type="Float" minvalue="0" maxvalue="10000" mandatory="false"> + <description> + The estimate range in KM the vehicle can travel based on fuel level and consumption. + </description> + </param> + <param name="level" type="Float" minvalue="-6" maxvalue="1000000" mandatory="false"> + <description>The relative remaining capacity of this fuel type (percentage).</description> + </param> + <param name="levelState" type="ComponentVolumeStatus" mandatory="false"> + <description>The fuel level state</description> + </param> + <param name="capacity" type="Float" minvalue="0" maxvalue="1000000" mandatory="false"> + <description>The absolute capacity of this fuel type.</description> + </param> + <param name="capacityUnit" type="Common.CapacityUnit" mandatory="false"> + <description>The unit of the capacity of this fuel type such as liters for gasoline or kWh for batteries.</description> + </param> +</struct> + <enum name="TPMS"> <element name="UNKNOWN"> <description>If set the status of the tire is not known.</description> @@ -6023,7 +6042,10 @@ <description>The instantaneous fuel consumption in microlitres</description> </param> <param name="fuelRange" type="Boolean" mandatory="false"> - <description>The estimate range in KM the vehicle can travel based on fuel level and consumption</description> + <description> + The fuel type, estimated range in KM, fuel level/capacity and fuel level state for the vehicle. + See struct FuelRange for details. + </description> </param> <param name="externalTemperature" type="Boolean" mandatory="false"> <description>The external temperature in degrees celsius</description> @@ -6116,7 +6138,10 @@ <description>The instantaneous fuel consumption in microlitres</description> </param> <param name="fuelRange" type="Common.VehicleDataResult" mandatory="false"> - <description>The estimate range in KM the vehicle can travel based on fuel level and consumption</description> + <description> + The fuel type, estimated range in KM, fuel level/capacity and fuel level state for the vehicle. + See struct FuelRange for details. + </description> </param> <param name="externalTemperature" type="Common.VehicleDataResult" mandatory="false"> <description>The external temperature in degrees celsius.</description> @@ -6215,7 +6240,10 @@ <description>The instantaneous fuel consumption in microlitres</description> </param> <param name="fuelRange" type="Boolean" mandatory="false"> - <description>The estimate range in KM the vehicle can travel based on fuel level and consumption</description> + <description> + The fuel type, estimated range in KM, fuel level/capacity and fuel level state for the vehicle. + See struct FuelRange for details. + </description> </param> <param name="externalTemperature" type="Boolean" mandatory="false"> <description>The external temperature in degrees celsius.</description> @@ -6308,7 +6336,10 @@ <description>The instantaneous fuel consumption in microlitres</description> </param> <param name="fuelRange" type="Common.VehicleDataResult" mandatory="false"> - <description>The estimate range in KM the vehicle can travel based on fuel level and consumption</description> + <description> + The fuel type, estimated range in KM, fuel level/capacity and fuel level state for the vehicle. + See struct FuelRange for details. + </description> </param> <param name="externalTemperature" type="Common.VehicleDataResult" mandatory="false"> <description>The external temperature in degrees celsius</description> @@ -6402,7 +6433,10 @@ <description>The instantaneous fuel consumption in microlitres</description> </param> <param name="fuelRange" type="Boolean" mandatory="false"> - <description>The estimate range in KM the vehicle can travel based on fuel level and consumption</description> + <description> + The fuel type, estimated range in KM, fuel level/capacity and fuel level state for the vehicle. + See struct FuelRange for details. + </description> </param> <param name="externalTemperature" type="Boolean" mandatory="false"> <description>The external temperature in degrees celsius</description> @@ -6498,7 +6532,10 @@ <description>The instantaneous fuel consumption in microlitres</description> </param> <param name="fuelRange" type="Common.FuelRange" minsize="0" maxsize="100" array="true" mandatory="false"> - <description>The estimate range in KM the vehicle can travel based on fuel level and consumption</description> + <description> + The fuel type, estimated range in KM, fuel level/capacity and fuel level state for the vehicle. + See struct FuelRange for details. + </description> </param> <param name="externalTemperature" type="Float" minvalue="-40" maxvalue="100" mandatory="false"> <description>The external temperature in degrees celsius</description> @@ -6595,7 +6632,10 @@ <description>The instantaneous fuel consumption in microlitres</description> </param> <param name="fuelRange" type="Common.FuelRange" minsize="0" maxsize="100" array="true" mandatory="false"> - <description>The estimate range in KM the vehicle can travel based on fuel level and consumption</description> + <description> + The fuel type, estimated range in KM, fuel level/capacity and fuel level state for the vehicle. + See struct FuelRange for details. + </description> </param> <param name="externalTemperature" type="Float" minvalue="-40" maxvalue="100" mandatory="false"> <description>The external temperature in degrees celsius</description> diff --git a/src/components/interfaces/MOBILE_API.xml b/src/components/interfaces/MOBILE_API.xml index 2a09cc6b57..947105882a 100644 --- a/src/components/interfaces/MOBILE_API.xml +++ b/src/components/interfaces/MOBILE_API.xml @@ -540,8 +540,8 @@ </element> <element name="VEHICLEDATA_SPEED" /> <element name="VEHICLEDATA_RPM" /> - <element name="VEHICLEDATA_FUELLEVEL" /> - <element name="VEHICLEDATA_FUELLEVEL_STATE" /> + <element name="VEHICLEDATA_FUELLEVEL" until="6.0"/> + <element name="VEHICLEDATA_FUELLEVEL_STATE" until="6.0"/> <element name="VEHICLEDATA_FUELCONSUMPTION" /> <element name="VEHICLEDATA_EXTERNTEMP" /> <element name="VEHICLEDATA_VIN" /> @@ -578,6 +578,12 @@ <element name="BOTH" /> </enum> + <enum name="CapacityUnit" since="6.0"> + <element name="LITERS" /> + <element name="KILOWATTHOURS" /> + <element name="KILOGRAMS" /> + </enum> + <struct name="CloudAppProperties" since="5.1"> <param name="nicknames" type="String" minlength="0" maxlength="100" array="true" minsize="0" maxsize="100" mandatory="false"> <description>An array of app names a cloud app is allowed to register with. If included in a SetCloudAppProperties request, this value will overwrite the existing "nicknames" field in the app policies section of the policy table.</description> @@ -1299,6 +1305,18 @@ The estimate range in KM the vehicle can travel based on fuel level and consumption. </description> </param> + <param name="level" type="Float" minvalue="-6" maxvalue="1000000" mandatory="false" since="6.0"> + <description>The relative remaining capacity of this fuel type (percentage).</description> + </param> + <param name="levelState" type="ComponentVolumeStatus" mandatory="false" since="6.0"> + <description>The fuel level state</description> + </param> + <param name="capacity" type="Float" minvalue="0" maxvalue="1000000" mandatory="false" since="6.0"> + <description>The absolute capacity of this fuel type.</description> + </param> + <param name="capacityUnit" type="CapacityUnit" mandatory="false" since="6.0"> + <description>The unit of the capacity of this fuel type such as liters for gasoline or kWh for batteries.</description> + </param> </struct> <enum name="ElectronicParkBrakeStatus" since="5.0"> @@ -5829,17 +5847,26 @@ <param name="rpm" type="Boolean" mandatory="false"> <description>The number of revolutions per minute of the engine</description> </param> - <param name="fuelLevel" type="Boolean" mandatory="false"> - <description>The fuel level in the tank (percentage)</description> + <param name="fuelLevel" type="Boolean" mandatory="false" deprecated="true" since="6.0"> + <description>The fuel level in the tank (percentage). This parameter is deprecated starting RPC Spec 6.0.x, please see fuelRange.</description> + <history> + <param name="fuelLevel" type="Boolean" mandatory="false" since="1.0" until="6.0"/> + </history> </param> - <param name="fuelLevel_State" type="Boolean" mandatory="false"> - <description>The fuel level state</description> + <param name="fuelLevel_State" type="Boolean" mandatory="false" deprecated="true" since="6.0"> + <description>The fuel level state. This parameter is deprecated starting RPC Spec 6.0.x, please see fuelRange.</description> + <history> + <param name="fuelLevel_State" type="Boolean" mandatory="false" since="1.0" until="6.0"/> + </history> </param> <param name="instantFuelConsumption" type="Boolean" mandatory="false"> <description>The instantaneous fuel consumption in microlitres</description> </param> <param name="fuelRange" type="Boolean" mandatory="false" since="5.0"> - <description>The estimate range in KM the vehicle can travel based on fuel level and consumption</description> + <description> + The fuel type, estimated range in KM, fuel level/capacity and fuel level state for the vehicle. + See struct FuelRange for details. + </description> </param> <param name="externalTemperature" type="Boolean" mandatory="false"> <description>The external temperature in degrees celsius</description> @@ -5942,17 +5969,26 @@ <param name="rpm" type="VehicleDataResult" mandatory="false"> <description>The number of revolutions per minute of the engine</description> </param> - <param name="fuelLevel" type="VehicleDataResult" mandatory="false"> - <description>The fuel level in the tank (percentage)</description> + <param name="fuelLevel" type="VehicleDataResult" mandatory="false" deprecated="true" since="6.0"> + <description>The fuel level in the tank (percentage). This parameter is deprecated starting RPC Spec 6.0.x, please see fuelRange.</description> + <history> + <param name="fuelLevel" type="VehicleDataResult" mandatory="false" since="1.0" until="6.0"/> + </history> </param> - <param name="fuelLevel_State" type="VehicleDataResult" mandatory="false"> - <description>The fuel level state</description> + <param name="fuelLevel_State" type="VehicleDataResult" mandatory="false" deprecated="true" since="6.0"> + <description>The fuel level state. This parameter is deprecated starting RPC Spec 6.0.x, please see fuelRange.</description> + <history> + <param name="fuelLevel_State" type="VehicleDataResult" mandatory="false" since="1.0" until="6.0"/> + </history> </param> <param name="instantFuelConsumption" type="VehicleDataResult" mandatory="false"> <description>The instantaneous fuel consumption in microlitres</description> </param> <param name="fuelRange" type="VehicleDataResult" mandatory="false" since="5.0"> - <description>The estimate range in KM the vehicle can travel based on fuel level and consumption</description> + <description> + The fuel type, estimated range in KM, fuel level/capacity and fuel level state for the vehicle. + See struct FuelRange for details. + </description> </param> <param name="externalTemperature" type="VehicleDataResult" mandatory="false"> <description>The external temperature in degrees celsius.</description> @@ -6034,17 +6070,26 @@ <param name="rpm" type="Boolean" mandatory="false"> <description>The number of revolutions per minute of the engine</description> </param> - <param name="fuelLevel" type="Boolean" mandatory="false"> - <description>The fuel level in the tank (percentage)</description> + <param name="fuelLevel" type="Boolean" mandatory="false" deprecated="true" since="6.0"> + <description>The fuel level in the tank (percentage). This parameter is deprecated starting RPC Spec 6.0.x, please see fuelRange.</description> + <history> + <param name="fuelLevel" type="Boolean" mandatory="false" since="1.0" until="6.0"/> + </history> </param> - <param name="fuelLevel_State" type="Boolean" mandatory="false"> - <description>The fuel level state</description> + <param name="fuelLevel_State" type="Boolean" mandatory="false" deprecated="true" since="6.0"> + <description>The fuel level state. This parameter is deprecated starting RPC Spec 6.0.x, please see fuelRange.</description> + <history> + <param name="fuelLevel_State" type="Boolean" mandatory="false" since="1.0" until="6.0"/> + </history> </param> <param name="instantFuelConsumption" type="Boolean" mandatory="false"> <description>The instantaneous fuel consumption in microlitres</description> </param> <param name="fuelRange" type="Boolean" mandatory="false" since="5.0"> - <description>The estimate range in KM the vehicle can travel based on fuel level and consumption</description> + <description> + The fuel type, estimated range in KM, fuel level/capacity and fuel level state for the vehicle. + See struct FuelRange for details. + </description> </param> <param name="externalTemperature" type="Boolean" mandatory="false"> <description>The external temperature in degrees celsius.</description> @@ -6146,17 +6191,26 @@ <param name="rpm" type="VehicleDataResult" mandatory="false"> <description>The number of revolutions per minute of the engine</description> </param> - <param name="fuelLevel" type="VehicleDataResult" mandatory="false"> - <description>The fuel level in the tank (percentage)</description> + <param name="fuelLevel" type="VehicleDataResult" mandatory="false" deprecated="true" since="6.0"> + <description>The fuel level in the tank (percentage). This parameter is deprecated starting RPC Spec 6.0.x, please see fuelRange.</description> + <history> + <param name="fuelLevel" type="VehicleDataResult" mandatory="false" since="1.0" until="6.0"/> + </history> </param> - <param name="fuelLevel_State" type="VehicleDataResult" mandatory="false"> - <description>The fuel level state</description> + <param name="fuelLevel_State" type="VehicleDataResult" mandatory="false" deprecated="true" since="6.0"> + <description>The fuel level state. This parameter is deprecated starting RPC Spec 6.0.x, please see fuelRange.</description> + <history> + <param name="fuelLevel_State" type="VehicleDataResult" mandatory="false" since="1.0" until="6.0"/> + </history> </param> <param name="instantFuelConsumption" type="VehicleDataResult" mandatory="false"> <description>The instantaneous fuel consumption in microlitres</description> </param> <param name="fuelRange" type="VehicleDataResult" mandatory="false" since="5.0"> - <description>The estimate range in KM the vehicle can travel based on fuel level and consumption</description> + <description> + The fuel type, estimated range in KM, fuel level/capacity and fuel level state for the vehicle. + See struct FuelRange for details. + </description> </param> <param name="externalTemperature" type="VehicleDataResult" mandatory="false"> <description>The external temperature in degrees celsius</description> @@ -6238,17 +6292,26 @@ <param name="rpm" type="Boolean" mandatory="false"> <description>The number of revolutions per minute of the engine</description> </param> - <param name="fuelLevel" type="Boolean" mandatory="false"> - <description>The fuel level in the tank (percentage)</description> + <param name="fuelLevel" type="Boolean" mandatory="false" deprecated="true" since="6.0"> + <description>The fuel level in the tank (percentage). This parameter is deprecated starting RPC Spec 6.0.x, please see fuelRange.</description> + <history> + <param name="fuelLevel" type="Boolean" mandatory="false" since="1.0" until="6.0"/> + </history> </param> - <param name="fuelLevel_State" type="Boolean" mandatory="false"> - <description>The fuel level state</description> + <param name="fuelLevel_State" type="Boolean" mandatory="false" deprecated="true" since="6.0"> + <description>The fuel level state. This parameter is deprecated starting RPC Spec 6.0.x, please see fuelRange.</description> + <history> + <param name="fuelLevel_State" type="Boolean" mandatory="false" since="1.0" until="6.0"/> + </history> </param> <param name="instantFuelConsumption" type="Boolean" mandatory="false"> <description>The instantaneous fuel consumption in microlitres</description> </param> <param name="fuelRange" type="Boolean" mandatory="false" since="5.0"> - <description>The estimate range in KM the vehicle can travel based on fuel level and consumption</description> + <description> + The fuel type, estimated range in KM, fuel level/capacity and fuel level state for the vehicle. + See struct FuelRange for details. + </description> </param> <param name="externalTemperature" type="Boolean" mandatory="false"> <description>The external temperature in degrees celsius</description> @@ -6354,17 +6417,26 @@ <param name="rpm" type="Integer" minvalue="0" maxvalue="20000" mandatory="false"> <description>The number of revolutions per minute of the engine</description> </param> - <param name="fuelLevel" type="Float" minvalue="-6" maxvalue="106" mandatory="false"> - <description>The fuel level in the tank (percentage)</description> + <param name="fuelLevel" type="Float" minvalue="-6" maxvalue="106" mandatory="false" deprecated="true" since="6.0"> + <description>The fuel level in the tank (percentage). This parameter is deprecated starting RPC Spec 6.0.x, please see fuelRange.</description> + <history> + <param name="fuelLevel" type="Float" minvalue="-6" maxvalue="106" mandatory="false" since="1.0" until="6.0"/> + </history> </param> - <param name="fuelLevel_State" type="ComponentVolumeStatus" mandatory="false"> - <description>The fuel level state</description> + <param name="fuelLevel_State" type="ComponentVolumeStatus" mandatory="false" deprecated="true" since="6.0"> + <description>The fuel level state. This parameter is deprecated starting RPC Spec 6.0.x, please see fuelRange.</description> + <history> + <param name="fuelLevel_State" type="ComponentVolumeStatus" mandatory="false" since="1.0" until="6.0"/> + </history> </param> <param name="instantFuelConsumption" type="Float" minvalue="0" maxvalue="25575" mandatory="false"> <description>The instantaneous fuel consumption in microlitres</description> </param> <param name="fuelRange" type="FuelRange" minsize="0" maxsize="100" array="true" mandatory="false" since="5.0"> - <description>The estimate range in KM the vehicle can travel based on fuel level and consumption</description> + <description> + The fuel type, estimated range in KM, fuel level/capacity and fuel level state for the vehicle. + See struct FuelRange for details. + </description> </param> <param name="externalTemperature" type="Float" minvalue="-40" maxvalue="100" mandatory="false"> <description>The external temperature in degrees celsius</description> @@ -8052,17 +8124,26 @@ <param name="rpm" type="Integer" minvalue="0" maxvalue="20000" mandatory="false"> <description>The number of revolutions per minute of the engine</description> </param> - <param name="fuelLevel" type="Float" minvalue="-6" maxvalue="106" mandatory="false"> - <description>The fuel level in the tank (percentage)</description> + <param name="fuelLevel" type="Float" minvalue="-6" maxvalue="106" mandatory="false" deprecated="true" since="6.0"> + <description>The fuel level in the tank (percentage). This parameter is deprecated starting RPC Spec 6.0.x, please see fuelRange.</description> + <history> + <param name="fuelLevel" type="Float" minvalue="-6" maxvalue="106" mandatory="false" since="1.0" until="6.0"/> + </history> </param> - <param name="fuelLevel_State" type="ComponentVolumeStatus" mandatory="false"> - <description>The fuel level state</description> + <param name="fuelLevel_State" type="ComponentVolumeStatus" mandatory="false" deprecated="true" since="6.0"> + <description>The fuel level state. This parameter is deprecated starting RPC Spec 6.0.x, please see fuelRange.</description> + <history> + <param name="fuelLevel_State" type="ComponentVolumeStatus" mandatory="false" since="1.0" until="6.0"/> + </history> </param> <param name="instantFuelConsumption" type="Float" minvalue="0" maxvalue="25575" mandatory="false"> <description>The instantaneous fuel consumption in microlitres</description> </param> <param name="fuelRange" type="FuelRange" minsize="0" maxsize="100" array="true" mandatory="false" since="5.0"> - <description>The estimate range in KM the vehicle can travel based on fuel level and consumption</description> + <description> + The fuel type, estimated range in KM, fuel level/capacity and fuel level state for the vehicle. + See struct FuelRange for details. + </description> </param> <param name="externalTemperature" type="Float" minvalue="-40" maxvalue="100" mandatory="false"> <description>The external temperature in degrees celsius</description> |