public abstract class VEnum extends Scalar
String
. The index is provided as an extra field, and
the list of all possible values is always provided.Constructor and Description |
---|
VEnum() |
Modifier and Type | Method and Description |
---|---|
Alarm |
getAlarm()
The alarm associated with this value.
|
abstract int |
getIndex()
Return the index of the value in the list of labels.
|
abstract EnumMetaData |
getMetaData()
Returns the metadata, including all possible labels.
|
Time |
getTime()
The time associated with this value.
|
abstract String |
getValue()
Returns the value.
|
static VEnum |
newVEnum(int index,
EnumMetaData metaData,
Alarm alarm,
Time time)
Create a new VEnum.
|
public abstract String getValue()
public abstract int getIndex()
public abstract EnumMetaData getMetaData()
public static VEnum newVEnum(int index, EnumMetaData metaData, Alarm alarm, Time time)
index
- the index in the label arraymetaData
- the metadataalarm
- the alarmtime
- the timepublic Alarm getAlarm()
public Time getTime()
Copyright © 2015. All rights reserved.