]> git.basschouten.com Git - openhab-addons.git/blob
1779269e51016761190bc38915fc3eb1ba30554e
[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.innogysmarthome.internal.client.entity.device;
14
15 import org.openhab.binding.innogysmarthome.internal.client.entity.state.BooleanState;
16 import org.openhab.binding.innogysmarthome.internal.client.entity.state.DateTimeState;
17 import org.openhab.binding.innogysmarthome.internal.client.entity.state.DoubleState;
18 import org.openhab.binding.innogysmarthome.internal.client.entity.state.IntegerState;
19 import org.openhab.binding.innogysmarthome.internal.client.entity.state.StringState;
20
21 import com.google.gson.annotations.SerializedName;
22
23 /**
24  * Holds the state of the Device.
25  *
26  * @author Oliver Kuhl - Initial contribution
27  *
28  */
29 public class State {
30     /** Standard device states */
31     @SerializedName("deviceInclusionState")
32     private StringState deviceInclusionState;
33
34     @SerializedName("deviceConfigurationState")
35     private StringState deviceConfigurationState;
36
37     private BooleanState isReachable;
38
39     private StringState updateState;
40
41     private StringState firmwareVersion;
42
43     @SerializedName("WHRating")
44     private DoubleState wHRating;
45
46     /** SHC device states */
47     // Removed updateAvailable because it is different between version 1 and 2 devices and not used anyway
48     // Related to openhab-addons #6613
49     // private StringState updateAvailable
50
51     private DateTimeState lastReboot;
52
53     private IntegerState memoryLoad;
54
55     @SerializedName("CPULoad")
56     private IntegerState cpuLoad;
57
58     @SerializedName("LBDongleAttached")
59     private BooleanState lBDongleAttached;
60
61     @SerializedName("MBusDongleAttached")
62     private BooleanState mBusDongleAttached;
63
64     private IntegerState configVersion;
65
66     @SerializedName("OSState")
67     private StringState oSState;
68
69     private IntegerState wifiSignalStrength;
70
71     private StringState ethIpAddress;
72
73     private StringState wifiIpAddress;
74
75     private StringState ethMacAddress;
76
77     private StringState wifiMacAddress;
78
79     private StringState inUseAdapter;
80
81     private BooleanState innogyLayerAttached;
82
83     private BooleanState discoveryActive;
84
85     private StringState operationStatus;
86
87     private DoubleState currentUtcOffset;
88
89     private DoubleState cpuUsage;
90
91     private DoubleState diskUsage;
92
93     private DoubleState memoryUsage;
94
95     /**
96      * @return the deviceInclusionState
97      */
98     public StringState getDeviceInclusionState() {
99         return deviceInclusionState;
100     }
101
102     /**
103      * @param deviceInclusionState the deviceInclusionState to set
104      */
105     public void setDeviceInclusionState(StringState deviceInclusionState) {
106         this.deviceInclusionState = deviceInclusionState;
107     }
108
109     /**
110      * @return the deviceConfigurationState
111      */
112     public StringState getDeviceConfigurationState() {
113         return deviceConfigurationState;
114     }
115
116     /**
117      * @param deviceConfigurationState the deviceConfigurationState to set
118      */
119     public void setDeviceConfigurationState(StringState deviceConfigurationState) {
120         this.deviceConfigurationState = deviceConfigurationState;
121     }
122
123     /**
124      * @return the isReachable
125      */
126     public BooleanState getIsReachable() {
127         return isReachable;
128     }
129
130     /**
131      * @param isReachable the isReachable to set
132      */
133     public void setIsReachable(BooleanState isReachable) {
134         this.isReachable = isReachable;
135     }
136
137     /**
138      * @return the updateState
139      */
140     public StringState getUpdateState() {
141         return updateState;
142     }
143
144     /**
145      * @param updateState the updateState to set
146      */
147     public void setUpdateState(StringState updateState) {
148         this.updateState = updateState;
149     }
150
151     /**
152      * @return the firmwareVersion
153      */
154     public StringState getFirmwareVersion() {
155         return firmwareVersion;
156     }
157
158     /**
159      * @param firmwareVersion the firmwareVersion to set
160      */
161     public void setFirmwareVersion(StringState firmwareVersion) {
162         this.firmwareVersion = firmwareVersion;
163     }
164
165     /**
166      * @return the wHRating
167      */
168     public DoubleState getWHRating() {
169         return wHRating;
170     }
171
172     /**
173      * @param wHRating the wHRating to set
174      */
175     public void setWHRating(DoubleState wHRating) {
176         this.wHRating = wHRating;
177     }
178
179     /**
180      * @return the lastReboot
181      */
182     public DateTimeState getLastReboot() {
183         return lastReboot;
184     }
185
186     /**
187      * @param lastReboot the lastReboot to set
188      */
189     public void setLastReboot(DateTimeState lastReboot) {
190         this.lastReboot = lastReboot;
191     }
192
193     /**
194      * @return the memoryLoad
195      */
196     public IntegerState getMemoryLoad() {
197         return memoryLoad;
198     }
199
200     /**
201      * @param memoryLoad the memoryLoad to set
202      */
203     public void setMemoryLoad(IntegerState memoryLoad) {
204         this.memoryLoad = memoryLoad;
205     }
206
207     /**
208      * @return the cPULoad
209      */
210     public IntegerState getCPULoad() {
211         return cpuLoad;
212     }
213
214     /**
215      * @param cpuLoad the cPULoad to set
216      */
217     public void setCPULoad(IntegerState cpuLoad) {
218         this.cpuLoad = cpuLoad;
219     }
220
221     /**
222      * @return the lBDongleAttached
223      */
224     public BooleanState getLBDongleAttached() {
225         return lBDongleAttached;
226     }
227
228     /**
229      * @param lBDongleAttached the lBDongleAttached to set
230      */
231     public void setLBDongleAttached(BooleanState lBDongleAttached) {
232         this.lBDongleAttached = lBDongleAttached;
233     }
234
235     /**
236      * @return the mBusDongleAttached
237      */
238     public BooleanState getMBusDongleAttached() {
239         return mBusDongleAttached;
240     }
241
242     /**
243      * @param mBusDongleAttached the mBusDongleAttached to set
244      */
245     public void setMBusDongleAttached(BooleanState mBusDongleAttached) {
246         this.mBusDongleAttached = mBusDongleAttached;
247     }
248
249     /**
250      * @return the configVersion
251      */
252     public IntegerState getConfigVersion() {
253         return configVersion;
254     }
255
256     /**
257      * @param configVersion the configVersion to set
258      */
259     public void setConfigVersion(IntegerState configVersion) {
260         this.configVersion = configVersion;
261     }
262
263     /**
264      * @return the oSState
265      */
266     public StringState getOSState() {
267         return oSState;
268     }
269
270     /**
271      * @param oSState the oSState to set
272      */
273     public void setOSState(StringState oSState) {
274         this.oSState = oSState;
275     }
276
277     /**
278      * @return the wifiSignalStrength
279      */
280     public IntegerState getWifiSignalStrength() {
281         return wifiSignalStrength;
282     }
283
284     /**
285      * @param wifiSignalStrength the wifiSignalStrength to set
286      */
287     public void setWifiSignalStrength(IntegerState wifiSignalStrength) {
288         this.wifiSignalStrength = wifiSignalStrength;
289     }
290
291     /**
292      * @return the ethIpAddress
293      */
294     public StringState getEthIpAddress() {
295         return ethIpAddress;
296     }
297
298     /**
299      * @param ethIpAddress the ethIpAddress to set
300      */
301     public void setEthIpAddress(StringState ethIpAddress) {
302         this.ethIpAddress = ethIpAddress;
303     }
304
305     /**
306      * @return the wifiIpAddress
307      */
308     public StringState getWifiIpAddress() {
309         return wifiIpAddress;
310     }
311
312     /**
313      * @param wifiIpAddress the wifiIpAddress to set
314      */
315     public void setWifiIpAddress(StringState wifiIpAddress) {
316         this.wifiIpAddress = wifiIpAddress;
317     }
318
319     /**
320      * @return the ethMacAddress
321      */
322     public StringState getEthMacAddress() {
323         return ethMacAddress;
324     }
325
326     /**
327      * @param ethMacAddress the ethMacAddress to set
328      */
329     public void setEthMacAddress(StringState ethMacAddress) {
330         this.ethMacAddress = ethMacAddress;
331     }
332
333     /**
334      * @return the wifiMacAddress
335      */
336     public StringState getWifiMacAddress() {
337         return wifiMacAddress;
338     }
339
340     /**
341      * @param wifiMacAddress the wifiMacAddress to set
342      */
343     public void setWifiMacAddress(StringState wifiMacAddress) {
344         this.wifiMacAddress = wifiMacAddress;
345     }
346
347     /**
348      * @return the inUseAdapter
349      */
350     public StringState getInUseAdapter() {
351         return inUseAdapter;
352     }
353
354     /**
355      * @param inUseAdapter the inUseAdapter to set
356      */
357     public void setInUseAdapter(StringState inUseAdapter) {
358         this.inUseAdapter = inUseAdapter;
359     }
360
361     /**
362      * @return the innogyLayerAttached
363      */
364     public BooleanState getInnogyLayerAttached() {
365         return innogyLayerAttached;
366     }
367
368     /**
369      * @param innogyLayerAttached the innogyLayerAttached to set
370      */
371     public void setInnogyLayerAttached(BooleanState innogyLayerAttached) {
372         this.innogyLayerAttached = innogyLayerAttached;
373     }
374
375     /**
376      * @return the discoveryActive
377      */
378     public BooleanState getDiscoveryActive() {
379         return discoveryActive;
380     }
381
382     /**
383      * @param discoveryActive the discoveryActive to set
384      */
385     public void setDiscoveryActive(BooleanState discoveryActive) {
386         this.discoveryActive = discoveryActive;
387     }
388
389     /**
390      * @return the operationStatus
391      */
392     public StringState getOperationStatus() {
393         return operationStatus;
394     }
395
396     /**
397      * @param operationStatus the operationStatus to set
398      */
399     public void setOperationStatus(StringState operationStatus) {
400         this.operationStatus = operationStatus;
401     }
402
403     /**
404      * @return the currentUtcOffset
405      */
406     public DoubleState getCurrentUtcOffset() {
407         return currentUtcOffset;
408     }
409
410     /**
411      * @param currentUtcOffset the currentUtcOffset to set
412      */
413     public void setCurrentUtcOffset(DoubleState currentUtcOffset) {
414         this.currentUtcOffset = currentUtcOffset;
415     }
416
417     /**
418      * @return the cpuUsage
419      */
420     public DoubleState getCpuUsage() {
421         return cpuUsage;
422     }
423
424     /**
425      * @param cpuUsage the cpuUsage to set
426      */
427     public void setCpuUsage(DoubleState cpuUsage) {
428         this.cpuUsage = cpuUsage;
429     }
430
431     /**
432      * @return the diskUsage
433      */
434     public DoubleState getDiskUsage() {
435         return diskUsage;
436     }
437
438     /**
439      * @param diskUsage the diskUsage to set
440      */
441     public void setDiskUsage(DoubleState diskUsage) {
442         this.diskUsage = diskUsage;
443     }
444
445     /**
446      * @return the memoryUsage
447      */
448     public DoubleState getMemoryUsage() {
449         return memoryUsage;
450     }
451
452     /**
453      * @param memoryUsage the memoryUsage to set
454      */
455     public void setMemoryUsage(DoubleState memoryUsage) {
456         this.memoryUsage = memoryUsage;
457     }
458 }