public class CumulativeDataEvent extends RawDataEvent
| Modifier and Type | Field and Description |
|---|---|
private Integer |
n
The number of individual data events used.
|
private Double |
rawmax
The maximum value of the raw data.
|
private Double |
rawmin
The minimum value of the raw data.
|
private static long |
serialVersionUID |
localHost, sourceNamesource| Constructor and Description |
|---|
CumulativeDataEvent(DataEvent source)
Constructs a new cumulative data event from a single data event.
|
CumulativeDataEvent(Object src)
Constructs a new data event given only the data event source.
|
| Modifier and Type | Method and Description |
|---|---|
protected String |
getDateString()
Overrides the data string.
|
String |
getFormattedPhysicalMax()
Returns the physical maximum, formatted to the physical formatter.
|
String |
getFormattedPhysicalMin()
Returns the physical minimum, formatted to the physical formatter.
|
String |
getFormattedRawMax()
Returns the raw maximum, formatted to the raw formatter.
|
String |
getFormattedRawMin()
Returns the raw minimum, formatted to the raw formatter.
|
protected String |
getMinMaxString(Double min,
Double max)
Constructs a line similar to
|
int |
getN()
Returns the number of measurements or zero if undefined.
|
double |
getPhysicalMax()
Returns the maximum of the measurements in physically meaningful
quantities or NaN if undefined.
|
double |
getPhysicalMin()
Returns the minimum of the measurements in physically meaningful
quantities or NaN if undefined.
|
double |
getRawMax()
Returns the maximum of the measurements or NaN if undefined.
|
double |
getRawMin()
Returns the minimum of the measurements or NaN if undefined.
|
void |
setN(int nr)
Sets the number of measurements.
|
void |
setRawMinMax(double min,
double max)
Sets the sigma of the raw measurments.
|
String |
toString()
Adds min/max info to the string representation.
|
formatPhysical, formatRaw, getFormattedPhysical, getFormattedPhysicalDeviation, getFormattedRaw, getFormattedRawDeviation, getPhysical, getPhysicalDeviation, getRaw, getRawConvert, getRawDeviation, getRawFormat, getRawString, getSigmaFormat, setRaw, setRawConvert, setRawDeviation, setRawFormat, setSigmaFormatgetMeasurement, getTimeOfMeasure, isValid, setMeasurement, setTimeOfMeasure, setValidgetHost, getSourceName, setSourceNamegetSourceprivate static final long serialVersionUID
private Integer n
private Double rawmax
private Double rawmin
public CumulativeDataEvent(Object src)
public CumulativeDataEvent(DataEvent source)
public void setRawMinMax(double min,
double max)
public double getRawMax()
public String getFormattedRawMax()
public double getRawMin()
public String getFormattedRawMin()
public double getPhysicalMax()
public String getFormattedPhysicalMax()
public double getPhysicalMin()
public String getFormattedPhysicalMin()
public void setN(int nr)
public int getN()
public String toString()
toString in class RawDataEventprotected String getDateString()
getDateString in class RawDataEventprotected String getMinMaxString(Double min, Double max)
min: raw (phys), max: raw (phys)
where raw is the raw reading, while phys is the
physical quantity (if available).
If no min/max info is available an empty string is returned.min - The minimum Double.max - The minimum Double.