summaryrefslogtreecommitdiff
path: root/sdl_android/src/main/java/com/smartdevicelink/proxy/rpc/SubscribeVehicleData.java
diff options
context:
space:
mode:
Diffstat (limited to 'sdl_android/src/main/java/com/smartdevicelink/proxy/rpc/SubscribeVehicleData.java')
-rw-r--r--sdl_android/src/main/java/com/smartdevicelink/proxy/rpc/SubscribeVehicleData.java817
1 files changed, 817 insertions, 0 deletions
diff --git a/sdl_android/src/main/java/com/smartdevicelink/proxy/rpc/SubscribeVehicleData.java b/sdl_android/src/main/java/com/smartdevicelink/proxy/rpc/SubscribeVehicleData.java
new file mode 100644
index 000000000..6b934ef21
--- /dev/null
+++ b/sdl_android/src/main/java/com/smartdevicelink/proxy/rpc/SubscribeVehicleData.java
@@ -0,0 +1,817 @@
+package com.smartdevicelink.proxy.rpc;
+
+import java.util.Hashtable;
+
+import com.smartdevicelink.protocol.enums.FunctionID;
+import com.smartdevicelink.proxy.RPCRequest;
+
+/**
+ * Subscribes for specific published vehicle data items. The data will be only
+ * sent, if it has changed. The application will be notified by the
+ * onVehicleData notification whenever new data is available. The update rate is
+ * very much dependent on sensors, vehicle architecture and vehicle type. Be
+ * also prepared for the situation that a signal is not available on a vehicle
+ *
+ * <p>Function Group: Location, VehicleInfo and DrivingChara</p>
+ *
+ * <p><b>HMILevel needs to be FULL, LIMITED or BACKGROUND</b></p>
+ *
+ * <p><b>Parameter List</b></p>
+ * <table border="1" rules="all">
+ * <tr>
+ * <th>Name</th>
+ * <th>Type</th>
+ * <th>Description</th>
+ * <th>Reg.</th>
+ * <th>Notes</th>
+ * <th>SmartDeviceLink Version</th>
+ * </tr>
+ * <tr>
+ * <td>gps</td>
+ * <td>Boolean</td>
+ * <td>GPS data. See {@linkplain GPSData}for details</td>
+ * <td>N</td>
+ * <td>Subscribable</td>
+ * <td>SmartDeviceLink 2.0 </td>
+ * </tr>
+ * <tr>
+ * <td>speed</td>
+ * <td>Boolean</td>
+ * <td>The vehicle speed in kilometers per hour</td>
+ * <td>N</td>
+ * <td>Subscribable</td>
+ * <td>SmartDeviceLink 2.0 </td>
+ * </tr>
+ * <tr>
+ * <td>rpm</td>
+ * <td>Boolean</td>
+ * <td>The number of revolutions per minute of the engine</td>
+ * <td>N</td>
+ * <td>Subscribable</td>
+ * <td>SmartDeviceLink 2.0 </td>
+ * </tr>
+ * <tr>
+ * <td>fuelLevel</td>
+ * <td>Boolean</td>
+ * <td>The fuel level in the tank (percentage)</td>
+ * <td>N</td>
+ * <td>Subscribable</td>
+ * <td>SmartDeviceLink 2.0 </td>
+ * </tr>
+ * <tr>
+ * <td>fuelLevel_State</td>
+ * <td>Boolean</td>
+ * <td>The fuel level state</td>
+ * <td>N</td>
+ * <td>Subscribable</td>
+ * <td>SmartDeviceLink 2.0 </td>
+ * </tr>
+ * <tr>
+ * <td>instantFuelConsumption</td>
+ * <td>Boolean</td>
+ * <td>The instantaneous fuel consumption in microlitres</td>
+ * <td>N</td>
+ * <td>Subscribable</td>
+ * <td>SmartDeviceLink 2.0 </td>
+ * </tr>
+ * <tr>
+ * <td>externalTemperature</td>
+ * <td>Boolean</td>
+ * <td>The external temperature in degrees celsius</td>
+ * <td>N</td>
+ * <td>Subscribable</td>
+ * <td>SmartDeviceLink 2.0 </td>
+ * </tr>
+ * <tr>
+ * <td>prndl</td>
+ * <td>Boolean</td>
+ * <td>Currently selected gear.</td>
+ * <td>N</td>
+ * <td>Subscribable</td>
+ * <td>SmartDeviceLink 2.0 </td>
+ * </tr>
+ * <tr>
+ * <td>tirePressure</td>
+ * <td>Boolean</td>
+ * <td>Tire pressure status</td>
+ * <td>N</td>
+ * <td>Subscribable</td>
+ * <td>SmartDeviceLink 2.0 </td>
+ * </tr>
+ * <tr>
+ * <td>odometer</td>
+ * <td>Boolean</td>
+ * <td>Odometer in km</td>
+ * <td>N</td>
+ * <td>Max Length: 500</td>
+ * <td>SmartDeviceLink 2.0 </td>
+ * </tr>
+ * <tr>
+ * <td>beltStatus</td>
+ * <td>Boolean</td>
+ * <td>The status of the seat belts</td>
+ * <td>N</td>
+ * <td>Subscribable</td>
+ * <td>SmartDeviceLink 2.0 </td>
+ * </tr>
+ * <tr>
+ * <td>bodyInformation</td>
+ * <td>Boolean</td>
+ * <td>The body information including ignition status and internal temp</td>
+ * <td>N</td>
+ * <td>Subscribable</td>
+ * <td>SmartDeviceLink 2.0 </td>
+ * </tr>
+ * <tr>
+ * <td>deviceStatus</td>
+ * <td>Boolean</td>
+ * <td>The device status including signal and battery strength</td>
+ * <td>N</td>
+ * <td>Subscribable</td>
+ * <td>SmartDeviceLink 2.0 </td>
+ * </tr>
+ * <tr>
+ * <td>driverBraking</td>
+ * <td>Boolean</td>
+ * <td>The status of the brake pedal</td>
+ * <td>N</td>
+ * <td>Subscribable</td>
+ * <td>SmartDeviceLink 2.0 </td>
+ * </tr>
+ * <tr>
+ * <td>wiperStatus</td>
+ * <td>Boolean</td>
+ * <td>The status of the wipers</td>
+ * <td>N</td>
+ * <td>Subscribable</td>
+ * <td>SmartDeviceLink 2.0 </td>
+ * </tr>
+ * <tr>
+ * <td>headLampStatus</td>
+ * <td>Boolean</td>
+ * <td>Status of the head lamps</td>
+ * <td>N</td>
+ * <td>Subscribable</td>
+ * <td>SmartDeviceLink 2.0 </td>
+ * </tr>
+ * <tr>
+ * <td>engineTorque</td>
+ * <td>Boolean</td>
+ * <td>Torque value for engine (in Nm) on non-diesel variants</td>
+ * <td>N</td>
+ * <td>Subscribable</td>
+ * <td>SmartDeviceLink 2.0 </td>
+ * </tr>
+ * <tr>
+ * <td>accPedalPosition</td>
+ * <td>Boolean</td>
+ * <td>Accelerator pedal position (percentage depressed)</td>
+ * <td>N</td>
+ * <td>Subscribable</td>
+ * <td>SmartDeviceLink 2.0 </td>
+ * </tr>
+ * <tr>
+ * <td>steeringWheelAngle</td>
+ * <td>Boolean</td>
+ * <td>Current angle of the steering wheel (in deg)</td>
+ * <td>N</td>
+ * <td>Subscribable</td>
+ * <td>SmartDeviceLink 2.0 </td>
+ * </tr>
+ * <tr>
+ * <td>eCallInfo</td>
+ * <td>Boolean</td>
+ * <td>Emergency Call notification and confirmation data.</td>
+ * <td>N</td>
+ * <td>Subscribable</td>
+ * <td>SmartDeviceLink 2.0 </td>
+ * </tr>
+ * <tr>
+ * <td>airbagStatus</td>
+ * <td>Boolean</td>
+ * <td>The status of the air bags.</td>
+ * <td>N</td>
+ * <td>Subscribable</td>
+ * <td>SmartDeviceLink 2.0 </td>
+ * </tr>
+ * <tr>
+ * <td>emergencyEvent</td>
+ * <td>Boolean</td>
+ * <td>Information related to an emergency event (and if it occurred).</td>
+ * <td>N</td>
+ * <td>Subscribable</td>
+ * <td>SmartDeviceLink 2.0 </td>
+ * </tr>
+ * <tr>
+ * <td>clusterModeStatus</td>
+ * <td>Boolean</td>
+ * <td>The status modes of the instrument panel cluster.</td>
+ * <td>N</td>
+ * <td>Subscribable</td>
+ * <td>SmartDeviceLink 2.0 </td>
+ * </tr>
+ * <tr>
+ * <td>myKey</td>
+ * <td>Boolean</td>
+ * <td>Information related to the MyKey feature.</td>
+ * <td>N</td>
+ * <td>Subscribable</td>
+ * <td>SmartDeviceLink 2.0 </td>
+ * </tr>
+ * </table>
+ *
+ * <p> <b>Response</b></p>
+ *<p><b>Non-default Result Codes:</b></p>
+ *<p>SUCCESS</p>
+ *<p>WARNINGS </p>
+ *<p>INVALID_DATA</p>
+ * <p>OUT_OF_MEMORY</p>
+ * <p>TOO_MANY_PENDING_REQUESTS</p>
+ * <p>APPLICATION_NOT_REGISTERED</p>
+ * <p>GENERIC_ERROR</p>
+ * <p>IGNORED </p>
+ * <p>DISALLOWED</p>
+ * <p>USER_DISALLOWED </p>
+ *
+ * @since SmartDeviceLink 2.0
+ * @see UnsubscribeVehicleData
+ * @see GetVehicleData
+ */
+public class SubscribeVehicleData extends RPCRequest {
+ public static final String KEY_RPM = "rpm";
+ public static final String KEY_EXTERNAL_TEMPERATURE = "externalTemperature";
+ public static final String KEY_FUEL_LEVEL = "fuelLevel";
+ public static final String KEY_PRNDL = "prndl";
+ public static final String KEY_TIRE_PRESSURE = "tirePressure";
+ public static final String KEY_ENGINE_TORQUE = "engineTorque";
+ public static final String KEY_ODOMETER = "odometer";
+ public static final String KEY_GPS = "gps";
+ public static final String KEY_FUEL_LEVEL_STATE = "fuelLevel_State";
+ public static final String KEY_INSTANT_FUEL_CONSUMPTION = "instantFuelConsumption";
+ public static final String KEY_BELT_STATUS = "beltStatus";
+ public static final String KEY_BODY_INFORMATION = "bodyInformation";
+ public static final String KEY_DEVICE_STATUS = "deviceStatus";
+ public static final String KEY_DRIVER_BRAKING = "driverBraking";
+ public static final String KEY_WIPER_STATUS = "wiperStatus";
+ public static final String KEY_HEAD_LAMP_STATUS = "headLampStatus";
+ public static final String KEY_ACC_PEDAL_POSITION = "accPedalPosition";
+ public static final String KEY_STEERING_WHEEL_ANGLE = "steeringWheelAngle";
+ public static final String KEY_E_CALL_INFO = "eCallInfo";
+ public static final String KEY_AIRBAG_STATUS = "airbagStatus";
+ public static final String KEY_EMERGENCY_EVENT = "emergencyEvent";
+ public static final String KEY_CLUSTER_MODE_STATUS = "clusterModeStatus";
+ public static final String KEY_MY_KEY = "myKey";
+ public static final String KEY_SPEED = "speed";
+
+ /**
+ * Constructs a new SubscribeVehicleData object
+ */
+ public SubscribeVehicleData() {
+ super(FunctionID.SUBSCRIBE_VEHICLE_DATA.toString());
+ }
+
+ /**
+ * <p>Constructs a new SubscribeVehicleData object indicated by the Hashtable
+ * parameter</p>
+ *
+ *
+ * @param hash
+ * The Hashtable to use
+ */
+ public SubscribeVehicleData(Hashtable<String, Object> hash) {
+ super(hash);
+ }
+
+ /**
+ * Sets a boolean value. If true, subscribes Gps data
+ *
+ * @param gps
+ * a boolean value
+ */
+ public void setGps(Boolean gps) {
+ if (gps != null) {
+ parameters.put(KEY_GPS, gps);
+ } else {
+ parameters.remove(KEY_GPS);
+ }
+ }
+
+ /**
+ * Gets a boolean value. If true, means the Gps data has been subscribed.
+ *
+ * @return Boolean -a Boolean value. If true, means the Gps data has been
+ * subscribed.
+ */
+ public Boolean getGps() {
+ return (Boolean) parameters.get(KEY_GPS);
+ }
+
+ /**
+ * Sets a boolean value. If true, subscribes speed data
+ *
+ * @param speed
+ * a boolean value
+ */
+ public void setSpeed(Boolean speed) {
+ if (speed != null) {
+ parameters.put(KEY_SPEED, speed);
+ } else {
+ parameters.remove(KEY_SPEED);
+ }
+ }
+
+ /**
+ * Gets a boolean value. If true, means the Speed data has been subscribed.
+ *
+ * @return Boolean -a Boolean value. If true, means the Speed data has been
+ * subscribed.
+ */
+ public Boolean getSpeed() {
+ return (Boolean) parameters.get(KEY_SPEED);
+ }
+
+ /**
+ * Sets a boolean value. If true, subscribes rpm data
+ *
+ * @param rpm
+ * a boolean value
+ */
+ public void setRpm(Boolean rpm) {
+ if (rpm != null) {
+ parameters.put(KEY_RPM, rpm);
+ } else {
+ parameters.remove(KEY_RPM);
+ }
+ }
+
+ /**
+ * Gets a boolean value. If true, means the rpm data has been subscribed.
+ *
+ * @return Boolean -a Boolean value. If true, means the rpm data has been
+ * subscribed.
+ */
+ public Boolean getRpm() {
+ return (Boolean) parameters.get(KEY_RPM);
+ }
+
+ /**
+ * Sets a boolean value. If true, subscribes FuelLevel data
+ *
+ * @param fuelLevel
+ * a boolean value
+ */
+ public void setFuelLevel(Boolean fuelLevel) {
+ if (fuelLevel != null) {
+ parameters.put(KEY_FUEL_LEVEL, fuelLevel);
+ } else {
+ parameters.remove(KEY_FUEL_LEVEL);
+ }
+ }
+
+ /**
+ * Gets a boolean value. If true, means the FuelLevel data has been
+ * subscribed.
+ *
+ * @return Boolean -a Boolean value. If true, means the FuelLevel data has
+ * been subscribed.
+ */
+ public Boolean getFuelLevel() {
+ return (Boolean) parameters.get(KEY_FUEL_LEVEL);
+ }
+
+ /**
+ * Sets a boolean value. If true, subscribes fuelLevel_State data
+ *
+ * @param fuelLevel_State
+ * a boolean value
+ */
+ @Deprecated
+ public void setFuelLevel_State(Boolean fuelLevel_State) {
+ setFuelLevelState(fuelLevel_State);
+ }
+
+ /**
+ * Gets a boolean value. If true, means the fuelLevel_State data has been
+ * subscribed.
+ *
+ * @return Boolean -a Boolean value. If true, means the fuelLevel_State data
+ * has been subscribed.
+ */
+ @Deprecated
+ public Boolean getFuelLevel_State() {
+ return getFuelLevelState();
+ }
+
+ /**
+ * Sets a boolean value. If true, subscribes fuelLevelState data
+ *
+ * @param fuelLevelState
+ * a boolean value
+ */
+ public void setFuelLevelState(Boolean fuelLevelState) {
+ if (fuelLevelState != null) {
+ parameters.put(KEY_FUEL_LEVEL_STATE, fuelLevelState);
+ } else {
+ parameters.remove(KEY_FUEL_LEVEL_STATE);
+ }
+ }
+
+ /**
+ * Gets a boolean value. If true, means the fuelLevelState data has been
+ * subscribed.
+ *
+ * @return Boolean -a Boolean value. If true, means the fuelLevelState data
+ * has been subscribed.
+ */
+ public Boolean getFuelLevelState() {
+ return (Boolean) parameters.get(KEY_FUEL_LEVEL_STATE);
+ }
+
+ /**
+ * Sets a boolean value. If true, subscribes instantFuelConsumption data
+ *
+ * @param instantFuelConsumption
+ * a boolean value
+ */
+ public void setInstantFuelConsumption(Boolean instantFuelConsumption) {
+ if (instantFuelConsumption != null) {
+ parameters.put(KEY_INSTANT_FUEL_CONSUMPTION, instantFuelConsumption);
+ } else {
+ parameters.remove(KEY_INSTANT_FUEL_CONSUMPTION);
+ }
+ }
+
+ /**
+ * Gets a boolean value. If true, means the getInstantFuelConsumption data has been
+ * subscribed.
+ *
+ * @return Boolean -a Boolean value. If true, means the getInstantFuelConsumption data
+ * has been subscribed.
+ */
+ public Boolean getInstantFuelConsumption() {
+ return (Boolean) parameters.get(KEY_INSTANT_FUEL_CONSUMPTION);
+ }
+
+ /**
+ * Sets a boolean value. If true, subscribes externalTemperature data
+ *
+ * @param externalTemperature
+ * a boolean value
+ */
+ public void setExternalTemperature(Boolean externalTemperature) {
+ if (externalTemperature != null) {
+ parameters.put(KEY_EXTERNAL_TEMPERATURE, externalTemperature);
+ } else {
+ parameters.remove(KEY_EXTERNAL_TEMPERATURE);
+ }
+ }
+
+ /**
+ * Gets a boolean value. If true, means the externalTemperature data has been
+ * subscribed.
+ *
+ * @return Boolean -a Boolean value. If true, means the externalTemperature data
+ * has been subscribed.
+ */
+ public Boolean getExternalTemperature() {
+ return (Boolean) parameters.get(KEY_EXTERNAL_TEMPERATURE);
+ }
+
+ /**
+ * Sets a boolean value. If true, subscribes Currently selected gear data
+ *
+ * @param prndl
+ * a boolean value
+ */
+ public void setPrndl(Boolean prndl) {
+ if (prndl != null) {
+ parameters.put(KEY_PRNDL, prndl);
+ } else {
+ parameters.remove(KEY_PRNDL);
+ }
+ }
+
+ /**
+ * Gets a boolean value. If true, means the Currently selected gear data has been
+ * subscribed.
+ *
+ * @return Boolean -a Boolean value. If true, means the Currently selected gear data
+ * has been subscribed.
+ */
+ public Boolean getPrndl() {
+ return (Boolean) parameters.get(KEY_PRNDL);
+ }
+
+ /**
+ * Sets a boolean value. If true, subscribes tire pressure status data
+ *
+ * @param tirePressure
+ * a boolean value
+ */
+ public void setTirePressure(Boolean tirePressure) {
+ if (tirePressure != null) {
+ parameters.put(KEY_TIRE_PRESSURE, tirePressure);
+ } else {
+ parameters.remove(KEY_TIRE_PRESSURE);
+ }
+ }
+
+ /**
+ * Gets a boolean value. If true, means the tire pressure status data has been
+ * subscribed.
+ *
+ * @return Boolean -a Boolean value. If true, means the tire pressure status data
+ * has been subscribed.
+ */
+ public Boolean getTirePressure() {
+ return (Boolean) parameters.get(KEY_TIRE_PRESSURE);
+ }
+
+ /**
+ * Sets a boolean value. If true, subscribes odometer data
+ *
+ * @param odometer
+ * a boolean value
+ */
+ public void setOdometer(Boolean odometer) {
+ if (odometer != null) {
+ parameters.put(KEY_ODOMETER, odometer);
+ } else {
+ parameters.remove(KEY_ODOMETER);
+ }
+ }
+
+ /**
+ * Gets a boolean value. If true, means the odometer data has been
+ * subscribed.
+ *
+ * @return Boolean -a Boolean value. If true, means the odometer data
+ * has been subscribed.
+ */
+ public Boolean getOdometer() {
+ return (Boolean) parameters.get(KEY_ODOMETER);
+ }
+
+ /**
+ * Sets a boolean value. If true, subscribes belt Status data
+ *
+ * @param beltStatus
+ * a boolean value
+ */
+ public void setBeltStatus(Boolean beltStatus) {
+ if (beltStatus != null) {
+ parameters.put(KEY_BELT_STATUS, beltStatus);
+ } else {
+ parameters.remove(KEY_BELT_STATUS);
+ }
+ }
+
+ /**
+ * Gets a boolean value. If true, means the belt Status data has been
+ * subscribed.
+ *
+ * @return Boolean -a Boolean value. If true, means the belt Status data
+ * has been subscribed.
+ */
+ public Boolean getBeltStatus() {
+ return (Boolean) parameters.get(KEY_BELT_STATUS);
+ }
+
+ /**
+ * Sets a boolean value. If true, subscribes body Information data
+ *
+ * @param bodyInformation
+ * a boolean value
+ */
+ public void setBodyInformation(Boolean bodyInformation) {
+ if (bodyInformation != null) {
+ parameters.put(KEY_BODY_INFORMATION, bodyInformation);
+ } else {
+ parameters.remove(KEY_BODY_INFORMATION);
+ }
+ }
+
+ /**
+ * Gets a boolean value. If true, means the body Information data has been
+ * subscribed.
+ *
+ * @return Boolean -a Boolean value. If true, means the body Information data
+ * has been subscribed.
+ */
+ public Boolean getBodyInformation() {
+ return (Boolean) parameters.get(KEY_BODY_INFORMATION);
+ }
+
+ /**
+ * Sets a boolean value. If true, subscribes device Status data
+ *
+ * @param deviceStatus
+ * a boolean value
+ */
+ public void setDeviceStatus(Boolean deviceStatus) {
+ if (deviceStatus != null) {
+ parameters.put(KEY_DEVICE_STATUS, deviceStatus);
+ } else {
+ parameters.remove(KEY_DEVICE_STATUS);
+ }
+ }
+
+ /**
+ * Gets a boolean value. If true, means the device Status data has been
+ * subscribed.
+ *
+ * @return Boolean -a Boolean value. If true, means the device Status data
+ * has been subscribed.
+ */
+ public Boolean getDeviceStatus() {
+ return (Boolean) parameters.get(KEY_DEVICE_STATUS);
+ }
+
+ /**
+ * Sets a boolean value. If true, subscribes driver Braking data
+ *
+ * @param driverBraking
+ * a boolean value
+ */
+ public void setDriverBraking(Boolean driverBraking) {
+ if (driverBraking != null) {
+ parameters.put(KEY_DRIVER_BRAKING, driverBraking);
+ } else {
+ parameters.remove(KEY_DRIVER_BRAKING);
+ }
+ }
+
+ /**
+ * Gets a boolean value. If true, means the driver Braking data has been
+ * subscribed.
+ *
+ * @return Boolean -a Boolean value. If true, means the driver Braking data
+ * has been subscribed.
+ */
+ public Boolean getDriverBraking() {
+ return (Boolean) parameters.get(KEY_DRIVER_BRAKING);
+ }
+
+ /**
+ * Sets a boolean value. If true, subscribes wiper Status data
+ *
+ * @param wiperStatus
+ * a boolean value
+ */
+ public void setWiperStatus(Boolean wiperStatus) {
+ if (wiperStatus != null) {
+ parameters.put(KEY_WIPER_STATUS, wiperStatus);
+ } else {
+ parameters.remove(KEY_WIPER_STATUS);
+ }
+ }
+
+ /**
+ * Gets a boolean value. If true, means the wiper Status data has been
+ * subscribed.
+ *
+ * @return Boolean -a Boolean value. If true, means the wiper Status data
+ * has been subscribed.
+ */
+ public Boolean getWiperStatus() {
+ return (Boolean) parameters.get(KEY_WIPER_STATUS);
+ }
+
+ /**
+ * Sets a boolean value. If true, subscribes Head Lamp Status data
+ *
+ * @param headLampStatus
+ * a boolean value
+ */
+ public void setHeadLampStatus(Boolean headLampStatus) {
+ if (headLampStatus != null) {
+ parameters.put(KEY_HEAD_LAMP_STATUS, headLampStatus);
+ } else {
+ parameters.remove(KEY_HEAD_LAMP_STATUS);
+ }
+ }
+
+ /**
+ * Gets a boolean value. If true, means the Head Lamp Status data has been
+ * subscribed.
+ *
+ * @return Boolean -a Boolean value. If true, means the Head Lamp Status data
+ * has been subscribed.
+ */
+ public Boolean getHeadLampStatus() {
+ return (Boolean) parameters.get(KEY_HEAD_LAMP_STATUS);
+ }
+
+ /**
+ * Sets a boolean value. If true, subscribes Engine Torque data
+ *
+ * @param engineTorque
+ * a boolean value
+ */
+ public void setEngineTorque(Boolean engineTorque) {
+ if (engineTorque != null) {
+ parameters.put(KEY_ENGINE_TORQUE, engineTorque);
+ } else {
+ parameters.remove(KEY_ENGINE_TORQUE);
+ }
+ }
+
+ /**
+ * Gets a boolean value. If true, means the Engine Torque data has been
+ * subscribed.
+ *
+ * @return Boolean -a Boolean value. If true, means the Engine Torque data
+ * has been subscribed.
+ */
+ public Boolean getEngineTorque() {
+ return (Boolean) parameters.get(KEY_ENGINE_TORQUE);
+ }
+
+ /**
+ * Sets a boolean value. If true, subscribes accPedalPosition data
+ *
+ * @param accPedalPosition
+ * a boolean value
+ */
+ public void setAccPedalPosition(Boolean accPedalPosition) {
+ if (accPedalPosition != null) {
+ parameters.put(KEY_ACC_PEDAL_POSITION, accPedalPosition);
+ } else {
+ parameters.remove(KEY_ACC_PEDAL_POSITION);
+ }
+ }
+
+ /**
+ * Gets a boolean value. If true, means the accPedalPosition data has been
+ * subscribed.
+ *
+ * @return Boolean -a Boolean value. If true, means the accPedalPosition data
+ * has been subscribed.
+ */
+ public Boolean getAccPedalPosition() {
+ return (Boolean) parameters.get(KEY_ACC_PEDAL_POSITION);
+ }
+
+ public void setSteeringWheelAngle(Boolean steeringWheelAngle) {
+ if (steeringWheelAngle != null) {
+ parameters.put(KEY_STEERING_WHEEL_ANGLE, steeringWheelAngle);
+ } else {
+ parameters.remove(KEY_STEERING_WHEEL_ANGLE);
+ }
+ }
+
+ public Boolean getSteeringWheelAngle() {
+ return (Boolean) parameters.get(KEY_STEERING_WHEEL_ANGLE);
+ }
+ public void setECallInfo(Boolean eCallInfo) {
+ if (eCallInfo != null) {
+ parameters.put(KEY_E_CALL_INFO, eCallInfo);
+ } else {
+ parameters.remove(KEY_E_CALL_INFO);
+ }
+ }
+ public Boolean getECallInfo() {
+ return (Boolean) parameters.get(KEY_E_CALL_INFO);
+ }
+ public void setAirbagStatus(Boolean airbagStatus) {
+ if (airbagStatus != null) {
+ parameters.put(KEY_AIRBAG_STATUS, airbagStatus);
+ } else {
+ parameters.remove(KEY_AIRBAG_STATUS);
+ }
+ }
+ public Boolean getAirbagStatus() {
+ return (Boolean) parameters.get(KEY_AIRBAG_STATUS);
+ }
+ public void setEmergencyEvent(Boolean emergencyEvent) {
+ if (emergencyEvent != null) {
+ parameters.put(KEY_EMERGENCY_EVENT, emergencyEvent);
+ } else {
+ parameters.remove(KEY_EMERGENCY_EVENT);
+ }
+ }
+ public Boolean getEmergencyEvent() {
+ return (Boolean) parameters.get(KEY_EMERGENCY_EVENT);
+ }
+ public void setClusterModeStatus(Boolean clusterModeStatus) {
+ if (clusterModeStatus != null) {
+ parameters.put(KEY_CLUSTER_MODE_STATUS, clusterModeStatus);
+ } else {
+ parameters.remove(KEY_CLUSTER_MODE_STATUS);
+ }
+ }
+ public Boolean getClusterModeStatus() {
+ return (Boolean) parameters.get(KEY_CLUSTER_MODE_STATUS);
+ }
+ public void setMyKey(Boolean myKey) {
+ if (myKey != null) {
+ parameters.put(KEY_MY_KEY, myKey);
+ } else {
+ parameters.remove(KEY_MY_KEY);
+ }
+ }
+ public Boolean getMyKey() {
+ return (Boolean) parameters.get(KEY_MY_KEY);
+ }
+
+}