Class EnumeratedVType

java.lang.Object
org.yamcs.studio.data.yamcs.YamcsVType
org.yamcs.studio.data.yamcs.EnumeratedVType
All Implemented Interfaces:
Alarm, Display, Enum, Scalar, Time, VEnum, VType

public class EnumeratedVType extends YamcsVType implements VEnum
  • Constructor Details

  • Method Details

    • getIndex

      public int getIndex()
      Description copied from interface: VEnum
      Return the index of the value in the list of labels.
      Specified by:
      getIndex in interface VEnum
      Returns:
      the current index
    • getValue

      public String getValue()
      Description copied from interface: Scalar
      Returns the value. Never null.
      Specified by:
      getValue in interface Scalar
      Specified by:
      getValue in interface VEnum
    • getLabels

      public List<String> getLabels()
      Description copied from interface: Enum
      All the possible labels. Never null.
      Specified by:
      getLabels in interface Enum
      Returns:
      the possible values
    • toString

      public String toString()
      Overrides:
      toString in class Object