]> git.basschouten.com Git - openhab-addons.git/blob
25b062b34121dd934e97a41e773690420ff225b5
[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.resol.handler;
14
15 import org.eclipse.jdt.annotation.NonNullByDefault;
16 import org.openhab.core.thing.Thing;
17 import org.openhab.core.thing.binding.BaseThingHandler;
18
19 import de.resol.vbus.Packet;
20 import de.resol.vbus.Specification;
21 import de.resol.vbus.SpecificationFile.Language;
22
23 /**
24  * The {@link ResolBaseThingHandler} class is a common ancestor for Resol thing handlers, capabale of handling vbus
25  * packets
26  *
27  * @author Raphael Mack - Initial contribution
28  */
29 @NonNullByDefault
30 public abstract class ResolBaseThingHandler extends BaseThingHandler {
31
32     public ResolBaseThingHandler(Thing thing) {
33         super(thing);
34     }
35
36     protected abstract void packetReceived(Specification spec, Language lang, Packet packet);
37 }