]> git.basschouten.com Git - openhab-addons.git/blob
b4d3643c4bbed0d923a976251edffba5e53a52a1
[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.knx.internal.channel;
14
15 import org.eclipse.jdt.annotation.NonNullByDefault;
16
17 /**
18  * Data structure representing a single group address configuration within a channel configuration parameter.
19  *
20  * @author Simon Kaufmann - initial contribution and API.
21  *
22  */
23 @NonNullByDefault
24 public class GroupAddressConfiguration {
25
26     private final String ga;
27     private final boolean read;
28
29     public GroupAddressConfiguration(String ga, boolean read) {
30         super();
31         this.ga = ga;
32         this.read = read;
33     }
34
35     /**
36      * The group address.
37      *
38      * @return the group address.
39      */
40     public String getGA() {
41         return ga;
42     }
43
44     /**
45      * Denotes whether the group address is marked to be actively read from.
46      *
47      * @return {@code true} if read requests should be issued to this address
48      */
49     public boolean isRead() {
50         return read;
51     }
52 }