2 * Copyright (c) 2010-2022 Contributors to the openHAB project
4 * See the NOTICE file(s) distributed with this work for additional
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
11 * SPDX-License-Identifier: EPL-2.0
13 package org.openhab.binding.bticinosmarther.internal.config;
16 * The {@code SmartherModuleConfiguration} class defines the internal configuration of a {@code SmartherModuleHandler}
19 * @author Fabio Possieri - Initial contribution
21 public class SmartherModuleConfiguration {
23 private String plantId;
24 private String moduleId;
25 private boolean settingsAutoupdate;
26 private int programsRefreshPeriod;
27 private int numberOfEndDays;
28 private int statusRefreshPeriod;
31 * Returns the location plant identifier.
33 * @return a string containing the plant identifier
35 public String getPlantId() {
40 * Sets the location plant identifier.
43 * the new plant identifier
45 public void setPlantId(String plantId) {
46 this.plantId = plantId;
50 * Returns the chronothermostat module identifier.
52 * @return a string containing the module identifier
54 public String getModuleId() {
59 * Sets the chronothermostat module identifier.
62 * the new module identifier
64 public void setModuleId(String moduleId) {
65 this.moduleId = moduleId;
69 * Tells whether the Module settings are updated with its status.
71 * @return {@code true} if the settings are updated whenever the module status is updated, {@code false} if the
72 * settings are updated only upon module initialization
74 public boolean isSettingsAutoupdate() {
75 return settingsAutoupdate;
79 * Sets whether the Module settings are updated with its status.
81 * @param settingsAutoupdate
82 * {@code true} if the settings are updated whenever the module status is updated, {@code false} if the
83 * settings are updated only upon module initialization
85 public void setSettingsAutoupdate(boolean settingsAutoupdate) {
86 this.settingsAutoupdate = settingsAutoupdate;
90 * Returns the automatic mode programs refresh period (in hours).
92 * @return the automatic mode programs refresh period
94 public int getProgramsRefreshPeriod() {
95 return programsRefreshPeriod;
99 * Sets the automatic mode programs refresh period (in hours).
101 * @param programsRefreshPeriod
102 * the new automatic mode programs refresh period
104 public void setProgramsRefreshPeriod(int programsRefreshPeriod) {
105 this.programsRefreshPeriod = programsRefreshPeriod;
109 * Returns the number of end days to be displayed in manual mode.
111 * @return the number of end days to be displayed
113 public int getNumberOfEndDays() {
114 return numberOfEndDays;
118 * Sets the number of end days to be displayed in manual mode.
120 * @param numberOfEndDays
121 * the new number of end days to be displayed
123 public void setNumberOfEndDays(int numberOfEndDays) {
124 this.numberOfEndDays = numberOfEndDays;
128 * Returns the Module status refresh period (in minutes).
130 * @return the Module status refresh period
132 public int getStatusRefreshPeriod() {
133 return statusRefreshPeriod;
137 * Sets the Module status refresh period (in minutes).
139 * @param statusRefreshPeriod
140 * the new Module status refresh period
142 public void setStatusRefreshPeriod(int statusRefreshPeriod) {
143 this.statusRefreshPeriod = statusRefreshPeriod;