]> git.basschouten.com Git - openhab-addons.git/blob
1452d15df781513460a06f3e5a4c1bf0da64c12a
[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.satel.internal.types;
14
15 import java.util.BitSet;
16
17 import org.eclipse.jdt.annotation.NonNullByDefault;
18
19 /**
20  * Interface for all types of control.
21  *
22  * @author Krzysztof Goworek - Initial contribution
23  */
24 @NonNullByDefault
25 public interface ControlType {
26
27     /**
28      * Returns Satel command to control state for this kind of object type.
29      *
30      * @return command identifier
31      */
32     byte getControlCommand();
33
34     /**
35      * Returns object type for this kind of control.
36      *
37      * @return Integra object type
38      */
39     ObjectType getObjectType();
40
41     /**
42      * Returns set of states that may change for this control type.
43      *
44      * @return command identifier
45      */
46     BitSet getControlledStates();
47 }