]> git.basschouten.com Git - openhab-addons.git/blob
7f49d574522901385e307de6c9ade170234ac587
[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 PowerFlowRealtimeSite} is responsible for storing
19  * the "site" node
20  *
21  * @author Thomas Rokohl - Initial contribution
22  */
23 public class PowerFlowRealtimeSite {
24
25     @SerializedName("Mode")
26     private String mode;
27     @SerializedName("P_Grid")
28     private double pgrid;
29     @SerializedName("P_Load")
30     private double pload;
31     @SerializedName("P_Akku")
32     private double pakku;
33     @SerializedName("P_PV")
34     private double ppv;
35     @SerializedName("rel_SelfConsumption")
36     private double relSelfConsumption;
37     @SerializedName("rel_Autonomy")
38     private double relAutonomy;
39     @SerializedName("E_Day")
40     private double eDay;
41     @SerializedName("E_Year")
42     private double eYear;
43     @SerializedName("E_Total")
44     private double eTotal;
45     @SerializedName("Meter_Location")
46     private String meterLocation;
47
48     public String getMode() {
49         if (mode == null) {
50             mode = "";
51         }
52         return mode;
53     }
54
55     public void setMode(String mode) {
56         this.mode = mode;
57     }
58
59     public double getPgrid() {
60         return pgrid;
61     }
62
63     public void setPgrid(double pgrid) {
64         this.pgrid = pgrid;
65     }
66
67     public double getPload() {
68         return pload;
69     }
70
71     public void setPload(double pload) {
72         this.pload = pload;
73     }
74
75     public double getPakku() {
76         return pakku;
77     }
78
79     public void setPakku(double pakku) {
80         this.pakku = pakku;
81     }
82
83     public double getPpv() {
84         return ppv;
85     }
86
87     public void setPpv(double ppv) {
88         this.ppv = ppv;
89     }
90
91     public double getRelSelfConsumption() {
92         return relSelfConsumption;
93     }
94
95     public void setRelSelfConsumption(double relSelfConsumption) {
96         this.relSelfConsumption = relSelfConsumption;
97     }
98
99     public double getRelAutonomy() {
100         return relAutonomy;
101     }
102
103     public void setRelAutonomy(double relAutonomy) {
104         this.relAutonomy = relAutonomy;
105     }
106
107     public double geteDay() {
108         return eDay;
109     }
110
111     public void seteDay(double eDay) {
112         this.eDay = eDay;
113     }
114
115     public double geteYear() {
116         return eYear;
117     }
118
119     public void seteYear(double eYear) {
120         this.eYear = eYear;
121     }
122
123     public double geteTotal() {
124         return eTotal;
125     }
126
127     public void seteTotal(double eTotal) {
128         this.eTotal = eTotal;
129     }
130
131     public String getMeterLocation() {
132         return meterLocation;
133     }
134
135     public void setMeterLocation(String meterLocation) {
136         this.meterLocation = meterLocation;
137     }
138 }