1 package com.smartdevicelink.proxy.rpc;
\r
3 import java.util.Hashtable;
\r
5 import com.smartdevicelink.proxy.RPCStruct;
\r
6 import com.smartdevicelink.proxy.constants.Names;
\r
8 public class FuelEconomyInformation extends RPCStruct {
\r
10 public FuelEconomyInformation() { }
\r
11 public FuelEconomyInformation(Hashtable hash) {
\r
14 public void setFuelEconomySinceLastReset(Double fuelEconomySinceLastReset) {
\r
15 if (fuelEconomySinceLastReset != null) {
\r
16 store.put(Names.fuelEconomySinceLastReset, fuelEconomySinceLastReset);
\r
18 store.remove(Names.fuelEconomySinceLastReset);
\r
21 public Double getFuelEconomySinceLastReset() {
\r
22 return (Double) store.get(Names.fuelEconomySinceLastReset);
\r
24 public void setCurrentTripFuelEconomy(Double currentTripFuelEconomy) {
\r
25 if (currentTripFuelEconomy != null) {
\r
26 store.put(Names.currentTripFuelEconomy, currentTripFuelEconomy);
\r
28 store.remove(Names.currentTripFuelEconomy);
\r
31 public Double getCurrentTripFuelEconomy() {
\r
32 return (Double) store.get(Names.currentTripFuelEconomy);
\r
34 public void setAverageTripFuelEconomy(Double averageTripFuelEconomy) {
\r
35 if (averageTripFuelEconomy != null) {
\r
36 store.put(Names.averageTripFuelEconomy, averageTripFuelEconomy);
\r
38 store.remove(Names.averageTripFuelEconomy);
\r
41 public Double getAverageTripFuelEconomy() {
\r
42 return (Double) store.get(Names.averageTripFuelEconomy);
\r
44 public void setCurrentCycleFuelEconomy(Double currentCycleFuelEconomy) {
\r
45 if (currentCycleFuelEconomy != null) {
\r
46 store.put(Names.currentCycleFuelEconomy, currentCycleFuelEconomy);
\r
48 store.remove(Names.currentCycleFuelEconomy);
\r
51 public Double getCurrentCycleFuelEconomy() {
\r
52 return (Double) store.get(Names.currentCycleFuelEconomy);
\r