|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IValue
Base interface for all control system values.
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
,
IMinMaxDoubleValue
Nested Class Summary | |
---|---|
static class |
IValue.Format
|
static class |
IValue.Quality
Describe the data quality. |
Method Summary | |
---|---|
java.lang.String |
format()
Format the value via the Default format. |
java.lang.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. |
IValue.Quality |
getQuality()
Get the quality of this value. |
ISeverity |
getSeverity()
Get the severity info. |
java.lang.String |
getStatus()
Get the status text that might describe the severity. |
ITimestamp |
getTime()
Get the time stamp. |
Method Detail |
---|
ITimestamp getTime()
ISeverity getSeverity()
ISeverity
,
getStatus()
java.lang.String getStatus()
getSeverity()
IValue.Quality getQuality()
IValue.Quality
IMetaData getMetaData()
It might be OK for some value types to only have null
MetaData, while others might require a specific one like
NumericMetaData
.
java.lang.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.
#toString()
java.lang.String format()
format(Format, int)
,
#toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |