Class PowerState
-
- All Implemented Interfaces:
public final class PowerStateRepresents the current status of the home power plant, in which the basic values are mapped.
- Since:
2.0
-
-
Field Summary
Fields Modifier and Type Field Description private final Instanttimestampprivate final IntegerpvDeliveryprivate final IntegergridDeliveryprivate final IntegerbatteryDeliveryprivate final IntegerhouseConsumptionprivate final FloatbatteryChargingLevel
-
Method Summary
Modifier and Type Method Description final InstantgetTimestamp()final IntegergetPvDelivery()final IntegergetGridDelivery()final IntegergetBatteryDelivery()final IntegergetHouseConsumption()final FloatgetBatteryChargingLevel()-
-
Constructor Detail
-
PowerState
PowerState(Instant timestamp, Integer pvDelivery, Integer gridDelivery, Integer batteryDelivery, Integer houseConsumption, Float batteryChargingLevel)
- Parameters:
timestamp- Timestamp at which the values were measuredpvDelivery- Current power supply from the photovoitaik modules in wattsgridDelivery- Current power delivery from (positive value) or to (negative value) the grid in wattsbatteryDelivery- Current power delivery from (positive value) or into (negative value) the battery in wattshouseConsumption- Current power consumption of the house in wattsbatteryChargingLevel- Current battery charge level
-
-
Method Detail
-
getTimestamp
final Instant getTimestamp()
-
getPvDelivery
final Integer getPvDelivery()
-
getGridDelivery
final Integer getGridDelivery()
-
getBatteryDelivery
final Integer getBatteryDelivery()
-
getHouseConsumption
final Integer getHouseConsumption()
-
getBatteryChargingLevel
final Float getBatteryChargingLevel()
-
-
-
-