]> git.basschouten.com Git - openhab-addons.git/blob
f2951a1eec97300f11ab7593c44f6377590e0ad9
[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.knx.internal.client;
14
15 import org.eclipse.jdt.annotation.NonNullByDefault;
16 import org.eclipse.jdt.annotation.Nullable;
17 import org.openhab.core.types.Type;
18
19 import tuwien.auto.calimero.GroupAddress;
20
21 /**
22  * Describes the relevant parameters for writing to the KNX bus.
23  *
24  * @author Simon Kaufmann - initial contribution and API
25  *
26  */
27 @NonNullByDefault
28 public interface OutboundSpec {
29
30     /**
31      * Get the datapoint type.
32      *
33      * @return the datapoint type
34      */
35     String getDPT();
36
37     /**
38      * The group address to be used.
39      *
40      * @return the group address
41      */
42     @Nullable
43     GroupAddress getGroupAddress();
44
45     /**
46      * The command or state to be sent.
47      *
48      * @return the command/state
49      */
50     Type getType();
51 }