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.yamahareceiver.internal.protocol;
15 import static java.util.stream.Collectors.toSet;
16 import static org.openhab.binding.yamahareceiver.internal.YamahaReceiverBindingConstants.Inputs.INPUT_TUNER;
18 import java.io.IOException;
20 import java.util.stream.Stream;
23 * The DAB Band control protocol interface.
25 * @author Tomasz Maruszak - Initial contribution.
27 public interface InputWithTunerBandControl extends IStateUpdatable {
29 * List all inputs that are compatible with this kind of control
31 Set<String> SUPPORTED_INPUTS = Stream.of(INPUT_TUNER).collect(toSet());
34 * Select a DAB band by name.
36 * @param band The band name (e.g. FM or DAB)
38 * @throws ReceivedMessageParseException
40 void selectBandByName(String band) throws IOException, ReceivedMessageParseException;