]> git.basschouten.com Git - openhab-addons.git/blob
02801dc09b914aff640856b29d7b3f699d136f5f
[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.velux.internal.bridge.common;
14
15 import org.eclipse.jdt.annotation.NonNullByDefault;
16 import org.openhab.binding.velux.internal.things.VeluxScene;
17
18 /**
19  * <B>Common bridge communication message scheme supported by the </B><I>Velux</I><B> bridge.</B>
20  * <P>
21  * Message semantic will be defined by the implementations according to the different comm paths.
22  * <P>
23  * In addition to the common methods defined by {@link BridgeCommunicationProtocol}
24  * each protocol-specific implementation has to provide the following methods:
25  * <UL>
26  * <LI>{@link #getScenes} for retrieving the Velux scenes information.
27  * </UL>
28  *
29  * @see BridgeCommunicationProtocol
30  *
31  * @author Guenther Schreiner - Initial contribution.
32  */
33 @NonNullByDefault
34 public abstract class GetScenes implements BridgeCommunicationProtocol {
35
36     /**
37      * <B>Retrieval of information about all defined scenes</B>
38      *
39      * @return <b>arrayOfScenes</b> as Array of VeluxScene describing the current scene configuration of the bridge.
40      */
41     public abstract VeluxScene[] getScenes();
42 }