]> git.basschouten.com Git - openhab-addons.git/blob
1370fc72cbdb10644c0dd7c3284fee11fe0996f7
[openhab-addons.git] /
1 /**
2  * Copyright (c) 2010-2022 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.max.internal.device;
14
15 import org.openhab.core.types.Command;
16 import org.openhab.core.types.PrimitiveType;
17 import org.openhab.core.types.State;
18
19 /**
20  * This enumeration represents the different mode types of a MAX! heating thermostat.
21  *
22  * @author Andreas Heil (info@aheil.de) - Initial contribution
23  * @author Marcel Verpaalen - OH2 update
24  */
25 public enum ThermostatModeType implements PrimitiveType, State, Command {
26     AUTOMATIC,
27     MANUAL,
28     VACATION,
29     BOOST;
30
31     @Override
32     public String format(String pattern) {
33         return String.format(pattern, this.toString());
34     }
35
36     @Override
37     public String toFullString() {
38         return toString();
39     }
40 }