public class DoubleValue extends Value implements IDoubleValue
IDoubleValue.IValue.FormatMAX_FORMAT_VALUE_COUNT| Constructor and Description |
|---|
DoubleValue(ITimestamp time,
ISeverity severity,
String status,
INumericMetaData metaData,
double[] values)
Constructs a new double value from pieces.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
String |
format(IValue.Format how,
int prec)
Format the value as a string.
|
double |
getValue() |
double[] |
getValues() |
int |
hashCode() |
format, getDisplayChar, getMetaData, getSeverity, getStatus, getTime, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitformat, getMetaData, getSeverity, getStatus, getTimepublic DoubleValue(ITimestamp time, ISeverity severity, String status, INumericMetaData metaData, double[] values)
time - the timestamp of the valueseverity - the severitystatus - the status of the valuemetaData - meta information about the PVvalues - the valuespublic final double[] getValues()
getValues in interface IDoubleValuepublic final double getValue()
getValue in interface IDoubleValueSince most values are probably scalars, this is a convenient way to get that one and only element.
IDoubleValue.getValues()public String format(IValue.Format how, int prec)
IValueThis means only the numeric or string value. Not the timestamp, not the severity and status.
format in interface IValueformat in class Valuehow - Detail on how to format.prec - 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.Copyright © 2023 European Spallation Source. All rights reserved.