]> git.basschouten.com Git - openhab-addons.git/blob
aa6751551d04fb1589a00eb64b1e0cdb4a01e306
[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.digitalstrom.internal.lib.structure.devices.deviceparameters.constants;
14
15 /**
16  * The {@link DeviceParameterClassEnum} lists all digitalSTROM-device parameter classes.
17  *
18  * @author Alexander Betker - initial contributer
19  * @version digitalSTROM-API 1.14.5
20  */
21 public enum DeviceParameterClassEnum {
22
23     /**
24      * communication specific parameters
25      */
26     CLASS_0(0),
27
28     /**
29      * digitalSTROM device specific parameters
30      */
31     CLASS_1(1),
32
33     /**
34      * function specific parameters
35      */
36     CLASS_3(3),
37
38     /**
39      * sensor event table
40      */
41     CLASS_6(6),
42
43     /**
44      * output status
45      *
46      * possible OffsetParameters:
47      * - READ_OUTPUT
48      */
49     CLASS_64(64),
50
51     /**
52      * read scene table
53      * use index/offset 0-127
54      */
55     CLASS_128(128);
56
57     private final int classIndex;
58
59     DeviceParameterClassEnum(int index) {
60         this.classIndex = index;
61     }
62
63     /**
64      * Returns the index of the {@link DeviceParameterClassEnum}.
65      *
66      * @return index
67      */
68     public Integer getClassIndex() {
69         return this.classIndex;
70     }
71 }