]> git.basschouten.com Git - openhab-addons.git/blob
711d2f5b438b2ff778bc0af9579831c225e3836d
[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.yamahareceiver.internal.protocol;
14
15 import static java.util.stream.Collectors.toSet;
16 import static org.openhab.binding.yamahareceiver.internal.YamahaReceiverBindingConstants.Inputs.INPUT_TUNER;
17
18 import java.io.IOException;
19 import java.util.Set;
20 import java.util.stream.Stream;
21
22 /**
23  * The DAB Band control protocol interface.
24  *
25  * @author Tomasz Maruszak - Initial contribution.
26  */
27 public interface InputWithTunerBandControl extends IStateUpdatable {
28     /**
29      * List all inputs that are compatible with this kind of control
30      */
31     Set<String> SUPPORTED_INPUTS = Stream.of(INPUT_TUNER).collect(toSet());
32
33     /**
34      * Select a DAB band by name.
35      *
36      * @param band The band name (e.g. FM or DAB)
37      * @throws Exception
38      */
39     void selectBandByName(String band) throws IOException, ReceivedMessageParseException;
40 }