]> git.basschouten.com Git - openhab-addons.git/blob
7aefe2308039638a462bef761e2f1ecf8a0239e6
[openhab-addons.git] /
1 /**
2  * Copyright (c) 2010-2023 Contributors to the openHAB project
3  *
4  * See the NOTICE file(s) distributed with this work for additional
5  * information.
6  *
7  * This program and the accompanying materials are made available under the
8  * terms of the Eclipse Public License 2.0 which is available at
9  * http://www.eclipse.org/legal/epl-2.0
10  *
11  * SPDX-License-Identifier: EPL-2.0
12  */
13 package org.openhab.binding.digitalstrom.internal.lib.listener;
14
15 /**
16  * The {@link TotalPowerConsumptionListener} is notified, if the total power consumption or the total electric meter
17  * value has changed.
18  *
19  * @author Michael Ochel - Initial contribution
20  * @author Matthias Siegele - Initial contribution
21  *
22  */
23 public interface TotalPowerConsumptionListener {
24
25     /**
26      * This method is called whenever the total power consumption of the digitalSTROM-System has changed.
27      *
28      * @param newPowerConsumption of the digitalSTROM-System
29      */
30     void onTotalPowerConsumptionChanged(int newPowerConsumption);
31
32     /**
33      * This method is called whenever the total energy meter value in Wh of the digitalSTROM-System has changed.
34      *
35      * @param newEnergyMeterValue of the digitalSTROM-System
36      */
37     void onEnergyMeterValueChanged(int newEnergyMeterValue);
38
39     /**
40      * This method is called whenever the total energy meter value in Ws of the digitalSTROM-System has changed.
41      *
42      * @param newEnergyMeterValue of the digitalSTROM-System
43      */
44     void onEnergyMeterWsValueChanged(int newEnergyMeterValue);
45 }