Class VehicleMeasure

java.lang.Object
be.gaudry.model.brolmeter.Measure
be.gaudry.model.brolmeter.VehicleMeasure
All Implemented Interfaces:
Comparable<Measure>

public class VehicleMeasure extends Measure
Since:
1.0 Sep 23, 2009
Author:
Steph GAUDRY
  • Constructor Details

    • VehicleMeasure

      public VehicleMeasure(Meter meter, Date date, float consumption, double mileage)
      Parameters:
      meter -
      date -
      consumption - consumption since last measure
      mileage - 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

      public String debug()
      Description copied from class: Measure
      Builds a string with all variables values
      Overrides:
      debug in class Measure
      Returns:
      all variables