public interface IValue
The Value handles all the other 'stuff' that comes with a control system value except for the actual
value itself:
In some cases, that's already all that there might be, because a sample can have a severity that indicates that there was no value, and the status describes why.
In most cases, however, access to the actual data requires the specific subtypes DoubleValue,
StringValue etc.
IDoubleValue,
ILongValue,
IStringValue,
IEnumeratedValue| Modifier and Type | Interface and Description |
|---|---|
static class |
IValue.Format |
| Modifier and Type | Method and Description |
|---|---|
String |
format()
Format the value via the Default format.
|
String |
format(IValue.Format how,
int precision)
Format the value as a string.
|
IMetaData |
getMetaData()
Meta Data that helps with using the value, mostly for formatting.
|
ISeverity |
getSeverity()
Get the severity info.
|
String |
getStatus()
Get the status text that might describe the severity.
|
ITimestamp |
getTime()
Get the time stamp.
|
ITimestamp getTime()
ISeverity getSeverity()
ISeverity,
getStatus()String getStatus()
getSeverity()IMetaData getMetaData()
It might be OK for some value types to only have null MetaData, while others might require a
specific one like NumericMetaData.
String format(IValue.Format how, int precision)
This means only the numeric or string value. Not the timestamp, not the severity and status.
how - Detail on how to format.precision - Might be used by some format types to select for example the number of digits after the decimal
point. A precision of '-1' might select the default-precision obtained from the MetaData.String format()
format(Format, int)Copyright © 2023 European Spallation Source. All rights reserved.