Package cz.cvut.fel.omo.SmartHome.report
Class ConsumptionReport
- java.lang.Object
-
- cz.cvut.fel.omo.SmartHome.report.AbstractReport
-
- cz.cvut.fel.omo.SmartHome.report.ConsumptionReport
-
public class ConsumptionReport extends AbstractReport
Class for Consumption report
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.List<AbstractDevice>
allDevices
private static int
electricity_cost
private static int
heating_cost
private House
house
-
Constructor Summary
Constructors Constructor Description ConsumptionReport()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
accept(ReportGenerator generator)
java.lang.String
report()
Generates a string that contains information about house consumption including financial conclusions
-
-
-
Field Detail
-
electricity_cost
private static int electricity_cost
-
heating_cost
private static int heating_cost
-
house
private final House house
-
allDevices
private final java.util.List<AbstractDevice> allDevices
-
-
Method Detail
-
report
public java.lang.String report()
Generates a string that contains information about house consumption including financial conclusions- Returns:
- string with report
-
accept
public void accept(ReportGenerator generator)
- Specified by:
accept
in classAbstractReport
-
-