]> git.basschouten.com Git - openhab-addons.git/blob
f5ea76fe75413398c799426012eb6411ae954892
[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 static org.openhab.binding.knx.internal.KNXBindingConstants.*;
16
17 import java.util.Collections;
18 import java.util.Set;
19
20 import org.eclipse.jdt.annotation.NonNullByDefault;
21
22 /**
23  * number channel type description
24  * 
25  * @author Simon Kaufmann - initial contribution and API.
26  *
27  */
28 @NonNullByDefault
29 class TypeNumber extends KNXChannelType {
30
31     TypeNumber() {
32         super(CHANNEL_NUMBER, CHANNEL_NUMBER_CONTROL);
33     }
34
35     @Override
36     protected String getDefaultDPT(String gaConfigKey) {
37         return "9.001";
38     }
39
40     @Override
41     protected Set<String> getAllGAKeys() {
42         return Collections.singleton(GA);
43     }
44 }