2 * Copyright (c) 2010-2023 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.caddx.internal.config;
15 import org.eclipse.jdt.annotation.NonNullByDefault;
16 import org.eclipse.jdt.annotation.Nullable;
17 import org.openhab.binding.caddx.internal.CaddxProtocol;
20 * Configuration class for the Caddx RS232 Serial interface bridge.
22 * @author Georgios Moutsos - Initial contribution
26 public class CaddxBridgeConfiguration {
28 // Caddx Bridge Thing constants
29 public static final String PROTOCOL = "protocol";
30 public static final String SERIAL_PORT = "serialPort";
31 public static final String BAUD = "baud";
32 public static final String MAX_ZONE_NUMBER = "maxZoneNumber";
33 public static final String IGNORE_ZONE_STATUS_TRANSITIONS = "ignoreZoneStatusTransitions";
35 private CaddxProtocol protocol = CaddxProtocol.Binary;
36 private @Nullable String serialPort;
37 private int baudrate = 9600;
38 private int maxZoneNumber = 16;
39 private boolean ignoreZoneStatusTransitions = false;
41 public CaddxProtocol getProtocol() {
45 public @Nullable String getSerialPort() {
49 public int getBaudrate() {
53 public int getMaxZoneNumber() {
57 public boolean isIgnoreZoneStatusTransitions() {
58 return ignoreZoneStatusTransitions;