View Javadoc
1   /**
2    * Copyright (C) 2010-14 pvmanager developers. See COPYRIGHT.TXT
3    * All rights reserved. Use is subject to license terms. See LICENSE.TXT
4    */
5   package org.epics.vtype;
6   
7   /**
8    * Scalar enum with alarm and timestamp.
9    * Given that enumerated values are of very limited use without
10   * the labels, and that the current label is the data most likely used, the
11   * enum is of type {@link String}. The index is provided as an extra field, and
12   * the list of all possible values is always provided.
13   *
14   * @author carcassi
15   */
16  public interface VEnum extends Scalar, Enum, Alarm, Time, VType {
17      
18      /**
19       * {@inheritDoc }
20       */
21      @Override
22      String getValue();
23  
24      /**
25       * Return the index of the value in the list of labels.
26       *
27       * @return the current index
28       */
29      int getIndex();
30  
31  }