]> git.basschouten.com Git - openhab-addons.git/blob
3da812fa898519f7c9106666306915398620ebda
[openhab-addons.git] /
1 /**
2  * Copyright (c) 2010-2024 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.fronius.internal.api;
14
15 import com.google.gson.annotations.SerializedName;
16
17 /**
18  * The {@link PowerFlowRealtimeInverter} is responsible for storing
19  * the "inverter" node of the JSON response
20  *
21  * @author Thomas Rokohl - Initial contribution
22  * @author Thomas Kordelle - Added inverter power, battery state of charge and PV solar yield
23  */
24 public class PowerFlowRealtimeInverter {
25
26     @SerializedName("DT")
27     private double dt;
28     @SerializedName("P")
29     private double p;
30     @SerializedName("E_Day")
31     private double eDay;
32     @SerializedName("E_Year")
33     private double eYear;
34     @SerializedName("E_Total")
35     private double eTotal;
36     @SerializedName("Battery_Mode")
37     private String batteryMode;
38     @SerializedName("SOC")
39     private double soc;
40
41     public double getDt() {
42         return dt;
43     }
44
45     public void setDt(double dt) {
46         this.dt = dt;
47     }
48
49     public double getP() {
50         return p;
51     }
52
53     public void setP(double p) {
54         this.p = p;
55     }
56
57     public double geteDay() {
58         return eDay;
59     }
60
61     public void seteDay(double eDay) {
62         this.eDay = eDay;
63     }
64
65     public double geteYear() {
66         return eYear;
67     }
68
69     public void seteYear(double eYear) {
70         this.eYear = eYear;
71     }
72
73     public double geteTotal() {
74         return eTotal;
75     }
76
77     public void seteTotal(double eTotal) {
78         this.eTotal = eTotal;
79     }
80
81     public String getBatteryMode() {
82         return batteryMode;
83     }
84
85     public void setBatteryMode(final String batteryMode) {
86         this.batteryMode = batteryMode;
87     }
88
89     public double getSoc() {
90         return soc;
91     }
92
93     public void setSoc(double soc) {
94         this.soc = soc;
95     }
96 }