]> git.basschouten.com Git - openhab-addons.git/blob
42b38e07f8b105cd4cd15f5fea48034e22268546
[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.onebusaway.internal.config;
14
15 import static org.openhab.binding.onebusaway.internal.OneBusAwayBindingConstants.*;
16
17 /**
18  * The {@link StopConfiguration} defines the model for a stop bridge configuration.
19  *
20  * @author Shawn Wilsher - Initial contribution
21  */
22 public class StopConfiguration {
23
24     private Integer interval;
25     private String stopId;
26
27     /**
28      * @return the update interval (in seconds).
29      */
30     public Integer getInterval() {
31         return interval;
32     }
33
34     /**
35      * Sets the update interval (in seconds).
36      */
37     public void setInterval(Integer interval) {
38         this.interval = interval;
39     }
40
41     /**
42      * @return the stop ID.
43      */
44     public String getStopId() {
45         return stopId;
46     }
47
48     /**
49      * Sets the stop ID.
50      */
51     public void setStopId(String stopId) {
52         this.stopId = stopId;
53     }
54
55     @Override
56     public String toString() {
57         return getClass().getSimpleName() + "{ " + STOP_CONFIG_INTERVAL + "=" + this.getInterval() + ", "
58                 + STOP_CONFIG_ID + "=" + this.getStopId() + "}";
59     }
60 }