Package org.yamcs.studio.data.vtype
Class IVEnumArray
java.lang.Object
org.yamcs.studio.data.vtype.IVMetadata
org.yamcs.studio.data.vtype.IVEnumArray
-
Constructor Summary
-
Method Summary
Methods inherited from class org.yamcs.studio.data.vtype.IVMetadata
getAlarmName, getAlarmSeverity, getTimestamp, getTimeUserTag, isTimeValid
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.yamcs.studio.data.vtype.Alarm
getAlarmName, getAlarmSeverity
Methods inherited from interface org.yamcs.studio.data.vtype.Time
getTimestamp, getTimeUserTag, isTimeValid
-
Constructor Details
-
IVEnumArray
-
-
Method Details
-
getLabels
Description copied from interface:Enum
All the possible labels. Never null. -
getData
Description copied from interface:Array
Return the object containing the array data.This method will either return a
List
or aListNumber
depending of the array type. A collection is returned, instead of an array, so that the type implementation can be immutable or can at least try to prevent modifications. ListNumber has also several advantages over the Java arrays, including the ability to iterate the list regardless of numeric type.If a numeric array is actually needed, refer to
CollectionNumbers
.- Specified by:
getData
in interfaceArray
- Specified by:
getData
in interfaceVEnumArray
- Returns:
- the array data
-
getIndexes
Description copied from interface:VEnumArray
Returns the indexes instead of the labels.- Specified by:
getIndexes
in interfaceVEnumArray
- Returns:
- an array of indexes
-
getSizes
Description copied from interface:Array
The shape of the multidimensional array.The size of the returned list will be the number of the dimension of the array. Each number represents the size of each dimension. The total number of elements in the array is therefore the product of all the numbers in the list returned.
-
toString
-