Interface EnergyDatum

All Superinterfaces:
Datum
All Known Subinterfaces:
AcDcEnergyDatum, AcEnergyDatum, DcEnergyDatum

public interface EnergyDatum extends Datum
Standardized API for energy related datum to implement.

By "energy" we simply mean this datum represents information tracked during the production or consumption of energy. For example current sensors can provide approximate instantaneous watt readings, watt-hour meters can provide accumulated Wh readings, and usually solar inverters can provide instantaneous generated power and accumulated energy production readings.

Version:
2.0
Author:
matt
  • Field Details

  • Method Details

    • getWattHourReading

      default Long getWattHourReading()
      Get a watt-hour reading.

      Generally this is an accumulating value and represents the overall energy used or produced since some reference date. Often the reference date if fixed, but it could also shift, for example shift to the last time a reading was taken.

      Returns:
      the watt hour reading, or null if not available
    • getReverseWattHourReading

      default Long getReverseWattHourReading()
      Get a reverse watt-hour reading.
      Returns:
      the reverse watt hour reading
    • getWatts

      default Integer getWatts()
      Get the instantaneous watts.
      Returns:
      watts, or null if not available
    • isConsumption

      default boolean isConsumption()
      Return true if this datum is tagged with TAG_CONSUMPTION.
      Returns:
      true if this datum has the consumption tag
    • isGeneration

      default boolean isGeneration()
      Return true if this datum is tagged with TAG_GENERATION.
      Returns:
      true if this datum has the generation tag