Package org.yamcs.studio.data.yamcs
Class YamcsVType
java.lang.Object
org.yamcs.studio.data.yamcs.YamcsVType
- Direct Known Subclasses:
AggregateArrayVType
,AggregateVType
,ArrayArrayVType
,BinaryVType
,BooleanArrayVType
,BooleanVType
,DoubleArrayVType
,DoubleVType
,EnumeratedArrayVType
,EnumeratedVType
,FloatArrayVType
,FloatVType
,Sint32ArrayVType
,Sint32VType
,Sint64ArrayVType
,Sint64VType
,StringArrayVType
,StringVType
,TimestampVType
,Uint32ArrayVType
,Uint32VType
,Uint64ArrayVType
,Uint64VType
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic YamcsVType
fromYamcs
(Pvalue.ParameterValue pval, boolean raw) Converts a yamcs ParameterValue to a VType.Return similar values as inValueFactory.newAlarm(Number, Display)
Describes the quality of the value returned.Returns a NumberFormat that creates a String with just the value (no units).getId()
Lowest value before the alarm region.Lowest possible value (included).Lowest possible value to be displayed.Lowest value before the warning region.The time instant of the value, typically indicating when it was generated.Returns a user defined tag, that can be used to store extra time information, such as beam shot.getUnits()
String representation of the units using for all values.Highest value before the alarm regionHighest possible value (included).Highest possible value to be displayed.Highest value before the warning regionboolean
Returns a data source specific flag to indicate whether the time information should be trusted.
-
Field Details
-
value
-
-
Constructor Details
-
YamcsVType
-
-
Method Details
-
getId
-
getParameterValue
-
getAlarmSeverity
Description copied from interface:Alarm
Describes the quality of the value returned. Never null.- Specified by:
getAlarmSeverity
in interfaceAlarm
-
getAlarmName
Return similar values as inValueFactory.newAlarm(Number, Display)
- Specified by:
getAlarmName
in interfaceAlarm
-
getTimestamp
Description copied from interface:Time
The time instant of the value, typically indicating when it was generated. If never connected, it returns the time when it was last determined that no connection was made.- Specified by:
getTimestamp
in interfaceTime
-
getTimeUserTag
Description copied from interface:Time
Returns a user defined tag, that can be used to store extra time information, such as beam shot.- Specified by:
getTimeUserTag
in interfaceTime
-
isTimeValid
public boolean isTimeValid()Description copied from interface:Time
Returns a data source specific flag to indicate whether the time information should be trusted. Typical cases are when records were not processes and the timestamp has a zero time.- Specified by:
isTimeValid
in interfaceTime
- Returns:
- true if the time information is valid
-
getLowerWarningLimit
Description copied from interface:Display
Lowest value before the warning region. Never null.- Specified by:
getLowerWarningLimit
in interfaceDisplay
-
getUpperWarningLimit
Highest value before the warning region- Specified by:
getUpperWarningLimit
in interfaceDisplay
-
getLowerAlarmLimit
Description copied from interface:Display
Lowest value before the alarm region. Never null.- Specified by:
getLowerAlarmLimit
in interfaceDisplay
-
getUpperAlarmLimit
Highest value before the alarm region- Specified by:
getUpperAlarmLimit
in interfaceDisplay
-
getLowerDisplayLimit
Description copied from interface:Display
Lowest possible value to be displayed. Never null.- Specified by:
getLowerDisplayLimit
in interfaceDisplay
-
getUpperDisplayLimit
Description copied from interface:Display
Highest possible value to be displayed. Never null.- Specified by:
getUpperDisplayLimit
in interfaceDisplay
-
getLowerCtrlLimit
Description copied from interface:Display
Lowest possible value (included). Never null.- Specified by:
getLowerCtrlLimit
in interfaceDisplay
-
getUpperCtrlLimit
Description copied from interface:Display
Highest possible value (included). Never null.- Specified by:
getUpperCtrlLimit
in interfaceDisplay
-
getUnits
Description copied from interface:Display
String representation of the units using for all values. Never null. If not available, returns the empty String. -
getFormat
Description copied from interface:Display
Returns a NumberFormat that creates a String with just the value (no units). Format is locale independent and should be used for all values (values and lower/upper limits). Never null. -
fromYamcs
Converts a yamcs ParameterValue to a VType.
-