2 * Copyright (c) 2010-2020 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.neeo.internal;
15 import org.eclipse.jdt.annotation.NonNullByDefault;
16 import org.eclipse.jdt.annotation.Nullable;
17 import org.openhab.binding.neeo.internal.handler.NeeoBrainHandler;
20 * The configuration class a neeo brain and used by {@link NeeoBrainHandler}
22 * @author Tim Roberts - initial contribution
25 public class NeeoBrainConfig {
29 private String ipAddress;
31 /** Whether to enable forward actions */
32 private boolean enableForwardActions;
34 /** The forward actions chain (comma delimited) */
36 private String forwardChain;
38 /** Whether to discover empty rooms or not */
39 private boolean discoverEmptyRooms;
41 /** The check status interval (in seconds) */
42 private int checkStatusInterval;
45 * Gets the ip address.
47 * @return the ip address
50 public String getIpAddress() {
55 * Sets the ip address.
57 * @param ipAddress the new ip address
59 public void setIpAddress(String ipAddress) {
60 this.ipAddress = ipAddress;
64 * Determines if forward actions is enabled
66 * @return true for enabled, false otherwise
68 public boolean isEnableForwardActions() {
69 return enableForwardActions;
73 * Sets whether to enable forward actions
75 * @param enableForwardActions true to enable, false otherwise
77 public void setEnableForwardActions(boolean enableForwardActions) {
78 this.enableForwardActions = enableForwardActions;
82 * Get's the forward chain
84 * @return the forward chain
87 public String getForwardChain() {
92 * Sets the forward change
94 * @param forwardChain the forward chain
96 public void setForwardChain(String forwardChain) {
97 this.forwardChain = forwardChain;
101 * Whether empty rooms should be discovered or not
103 * @return true to discover empty rooms, false otherwise
105 public boolean isDiscoverEmptyRooms() {
106 return discoverEmptyRooms;
110 * Set's whether to discover empty rooms
112 * @param discoverEmptyRooms true to discover, false otherwise
114 public void setDiscoverEmptyRooms(boolean discoverEmptyRooms) {
115 this.discoverEmptyRooms = discoverEmptyRooms;
119 * Gets the interval (in seconds) to check the brain status
121 * @return the check status interval (negative to disable)
123 public int getCheckStatusInterval() {
124 return checkStatusInterval;
128 * Sets the interval (in seconds) to check the brain status
130 * @param checkStatusInterval return the check status interval (negative to disable)
132 public void setCheckStatusInterval(int checkStatusInterval) {
133 this.checkStatusInterval = checkStatusInterval;