Class Consumption
- java.lang.Object
-
- cz.cvut.fel.omo.SmartHome.devices.Consumption
-
public class Consumption extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private double
consumption
private ConsumptionType
consumptionType
private double
totalConsumption
-
Constructor Summary
Constructors Constructor Description Consumption(ConsumptionType consumptionType, double consumption)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
consumes(double onThe)
Method calculating total consuming of device.
-
-
-
Field Detail
-
consumptionType
private ConsumptionType consumptionType
-
totalConsumption
private double totalConsumption
-
consumption
private double consumption
-
-
Constructor Detail
-
Consumption
public Consumption(ConsumptionType consumptionType, double consumption)
-
-