View Javadoc

1   /*
2    * Copyright 2009, openv4j.sf.net, and individual contributors as indicated
3    * by the @authors tag. See the copyright.txt in the distribution for a
4    * full listing of individual contributors.
5    *
6    * This is free software; you can redistribute it and/or modify it
7    * under the terms of the GNU General Public License as
8    * published by the Free Software Foundation; either version 3 of
9    * the License, or (at your option) any later version.
10   *
11   * This software is distributed in the hope that it will be useful,
12   * but WITHOUT ANY WARRANTY; without even the implied warranty of
13   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14   * Lesser General Public License for more details.
15   *
16   * You should have received a copy of the GNU Lesser General Public
17   * License along with this software; if not, write to the Free
18   * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
19   * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
20   *
21   * $Id: $
22   *
23   * @author arnep
24   */
25  package net.sf.openv4j;
26  
27  import java.io.Serializable;
28  
29  /**
30   * 
31   */
32  public enum Group implements Serializable {COMMON("Common"),
33      BOILER("Boiler"),
34      DHW("DHW"),
35      A1M1("A1M1"),
36      DHW_A1M1("DHW A1M1"),
37      M2("M2"),
38      DHW_M2("DHW M2"),
39      M3("M3"),
40      DHW_M3("DHW M3"),
41      SOLAR("Solar");
42  
43      private final String label;
44  
45      private Group(String label) {
46          this.label = label;
47      }
48  
49      /**
50       * DOCUMENT ME!
51       *
52       * @return DOCUMENT ME!
53       */
54      public String getName() {
55          return name();
56      }
57  
58      /**
59       * DOCUMENT ME!
60       *
61       * @return DOCUMENT ME!
62       */
63      public String getLabel() {
64          return label;
65      }
66  
67      /**
68       * DOCUMENT ME!
69       *
70       * @return DOCUMENT ME!
71       */
72      @Override
73      public String toString() {
74          return label;
75      }
76  }