org.epics.pvmanager.data
Interface VEnum

All Superinterfaces:
Alarm, Enum, Scalar, Time, VType

public interface VEnum
extends Scalar, Enum, Alarm, Time, VType

Scalar enum with alarm and timestamp. Given that enumerated values are of very limited use without the labels, and that the current label is the data most likely used, the enum is of type String. The index is provided as an extra field, and the list of all possible values is always provided.

Author:
carcassi

Method Summary
 int getIndex()
          Return the index of the value in the list of labels.
 java.lang.String getValue()
          Returns the value.
 
Methods inherited from interface org.epics.pvmanager.data.Enum
getLabels
 
Methods inherited from interface org.epics.pvmanager.data.Alarm
getAlarmSeverity, getAlarmStatus
 
Methods inherited from interface org.epics.pvmanager.data.Time
getTimestamp, getTimeStamp, getTimeUserTag, isTimeValid
 

Method Detail

getValue

java.lang.String getValue()
Returns the value. Never null.

Specified by:
getValue in interface Scalar
Returns:
the value

getIndex

int getIndex()
Return the index of the value in the list of labels.

Returns:
the current index