]> git.basschouten.com Git - openhab-addons.git/blob
818ea8d970fea879ef14ff84f7c4daf0614ef2a1
[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.max.internal.device;
14
15 /**
16  * Room information provided by the M message meta information.
17  *
18  * @author Andreas Heil - Initial contribution
19  * @author Marcel Verpaalen - OH2 update
20  */
21 public class RoomInformation {
22     private int position;
23     private String name;
24     private String rfAddress;
25
26     public RoomInformation(int position, String name, String rfAddress) {
27         this.position = position;
28         this.name = name;
29         this.rfAddress = rfAddress;
30     }
31
32     public int getPosition() {
33         return position;
34     }
35
36     public void setPosition(int position) {
37         this.position = position;
38     }
39
40     public String getName() {
41         return this.name;
42     }
43
44     public void setName(String name) {
45         this.name = name;
46     }
47
48     public String getRFAddress() {
49         return rfAddress;
50     }
51
52     public void setRFAddress(String rfAddress) {
53         this.rfAddress = rfAddress;
54     }
55
56     @Override
57     public String toString() {
58         return "Room " + position + " (" + rfAddress + ") ='" + name + "'";
59     }
60 }