2 * Copyright (c) 2010-2023 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.satel.internal.types;
15 import java.util.BitSet;
18 * Available door control types.
20 * @author Krzysztof Goworek - Initial contribution
22 public enum DoorControl implements ControlType {
23 OPEN(0x8A, DoorState.OPENED);
25 private byte controlCommand;
26 private BitSet stateBits;
28 DoorControl(int controlCommand, DoorState... controlledStates) {
29 this.controlCommand = (byte) controlCommand;
30 this.stateBits = StateType.getStatesBitSet(controlledStates);
34 public byte getControlCommand() {
35 return controlCommand;
39 public ObjectType getObjectType() {
40 return ObjectType.DOOR;
44 public BitSet getControlledStates() {