2 * Copyright (c) 2010-2020 Contributors to the openHAB project
4 * See the NOTICE file(s) distributed with this work for additional
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
11 * SPDX-License-Identifier: EPL-2.0
13 package org.openhab.binding.insteon.internal.config;
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;
24 * This file contains config information needed for each channel
26 * @author Rob Nielsen - Initial contribution
29 public class InsteonChannelConfiguration {
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;
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;
46 this.channelName = channelUID.getAsString();
49 public ChannelUID getChannelUID() {
53 public String getChannelName() {
57 public InsteonAddress getAddress() {
61 public String getFeature() {
65 public String getProductKey() {
69 public Map<String, @Nullable String> getParameters() {