]> git.basschouten.com Git - openhab-addons.git/blob
f075623833de504f3ede10fe87d0c37707599f46
[openhab-addons.git] /
1 /**
2  * Copyright (c) 2010-2020 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.dsmr.internal.meter;
14
15 /**
16  * This class describes the kind of meters the binding supports
17  *
18  * @author M. Volaart - Initial contribution
19  */
20 public enum DSMRMeterKind {
21     INVALID,
22     DEVICE,
23     MAIN_ELECTRICITY,
24     GAS,
25     HEATING,
26     COOLING,
27     WATER,
28     GENERIC,
29     GJ,
30     M3,
31     SLAVE_ELECTRICITY1,
32     SLAVE_ELECTRICITY2;
33
34     /**
35      * @return Returns the i18n label key for this meter.
36      */
37     public String getLabelKey() {
38         return "@text/meterKind." + name().toLowerCase() + ".label";
39     }
40 }