Package be.gaudry.model.brolmeter
Class VehicleMeasure
java.lang.Object
be.gaudry.model.brolmeter.Measure
be.gaudry.model.brolmeter.VehicleMeasure
- All Implemented Interfaces:
Comparable<Measure>
- Since:
- 1.0 Sep 23, 2009
- Author:
- Steph GAUDRY
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondebug()
Builds a string with all variables valuesfloat
int
boolean
void
setConsumption(int consumption)
void
setDayMileage(int dayMileage)
void
setFullRefueling(boolean fullRefueling)
-
Constructor Details
-
VehicleMeasure
- Parameters:
meter
-date
-consumption
- consumption since last measuremileage
- total mileage
-
-
Method Details
-
getConsumption
public float getConsumption()- Returns:
- the consumption
-
setConsumption
public void setConsumption(int consumption)- Parameters:
consumption
- the consumption to set
-
getDayMileage
public int getDayMileage()- Returns:
- the dayMileage
-
setDayMileage
public void setDayMileage(int dayMileage)- Parameters:
dayMileage
- the dayMileage to set
-
isFullRefueling
public boolean isFullRefueling()- Returns:
- the fullRefueling
-
setFullRefueling
public void setFullRefueling(boolean fullRefueling)- Parameters:
fullRefueling
- the fullRefueling to set
-
debug
Description copied from class:Measure
Builds a string with all variables values
-