Class Statistics
- java.lang.Object
-
- com.github.kaklakariada.fritzbox.model.homeautomation.Statistics
-
public class Statistics extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Statistics()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.NumbercomputeValue(java.lang.String aValue)intgetCount()java.lang.StringgetCsvValues()Provide the gathered data as provided by Fritz!BoxintgetGrid()MeasurementUnitgetMeasurementUnit()Provide the measurement unit to be used with the statistics.java.util.List<java.util.Optional<java.lang.Number>>getValues()Provide the gathered data as computed as meant to be used by AVMprotected voidsetCsvValues(java.lang.String csvValues)Just for unit test provided.voidsetMeasurementUnit(MeasurementUnit measurementUnit)
-
-
-
Method Detail
-
getCount
public int getCount()
-
getGrid
public int getGrid()
-
getCsvValues
public java.lang.String getCsvValues()
Provide the gathered data as provided by Fritz!Box- Returns:
-
setCsvValues
protected void setCsvValues(java.lang.String csvValues)
Just for unit test provided. Therefore it is set to protected
-
getValues
public java.util.List<java.util.Optional<java.lang.Number>> getValues()
Provide the gathered data as computed as meant to be used by AVM- Returns:
-
getMeasurementUnit
public MeasurementUnit getMeasurementUnit()
Provide the measurement unit to be used with the statistics.Consists of:
- measurment unit [V, W, Wh, %]
- precision as double to multiply with the gathered Integer
- Returns:
-
setMeasurementUnit
public void setMeasurementUnit(MeasurementUnit measurementUnit)
-
computeValue
protected java.lang.Number computeValue(java.lang.String aValue)
-
-