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