]> git.basschouten.com Git - openhab-addons.git/blob
b0c73e97af19722e9f8bc11f5bfee7269f962d23
[openhab-addons.git] /
1 /**
2  * Copyright (c) 2010-2024 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.insteon.internal.config;
14
15 import java.util.Map;
16
17 import org.eclipse.jdt.annotation.NonNullByDefault;
18 import org.openhab.binding.insteon.internal.device.InsteonAddress;
19 import org.openhab.core.thing.ChannelUID;
20
21 /**
22  *
23  * This file contains config information needed for each channel
24  *
25  * @author Rob Nielsen - Initial contribution
26  */
27 @NonNullByDefault
28 public class InsteonChannelConfiguration {
29
30     private final ChannelUID channelUID;
31     private final String channelName;
32     private final InsteonAddress address;
33     private final String feature;
34     private final String productKey;
35     private final Map<String, String> parameters;
36
37     public InsteonChannelConfiguration(ChannelUID channelUID, String feature, InsteonAddress address, String productKey,
38             Map<String, String> parameters) {
39         this.channelUID = channelUID;
40         this.feature = feature;
41         this.address = address;
42         this.productKey = productKey;
43         this.parameters = parameters;
44
45         this.channelName = channelUID.getAsString();
46     }
47
48     public ChannelUID getChannelUID() {
49         return channelUID;
50     }
51
52     public String getChannelName() {
53         return channelName;
54     }
55
56     public InsteonAddress getAddress() {
57         return address;
58     }
59
60     public String getFeature() {
61         return feature;
62     }
63
64     public String getProductKey() {
65         return productKey;
66     }
67
68     public Map<String, String> getParameters() {
69         return parameters;
70     }
71 }