public class PredictiveDataEvent extends CumulativeDataEvent
PredictiveSensor to the data event
generated.| Modifier and Type | Field and Description |
|---|---|
private Double |
predictmax
The maximum predicted value if used as an average of data.
|
private Double |
predictmin
The minimum predicted value if used as an average of data.
|
private Double |
predictraw
The raw predicted value.
|
private static long |
serialVersionUID |
localHost, sourceNamesource| Constructor and Description |
|---|
PredictiveDataEvent(DataEvent de)
Constructs a new predictive data event from a generic data event.
|
PredictiveDataEvent(Object src)
Constructs a new predictive data event without any values specified.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getFormattedPredictMax()
Returns the predicted raw maximum as a string, formatted according to the
raw formatter.
|
String |
getFormattedPredictMin()
Returns the predicted raw minimum as a string, formatted according to the
raw formatter.
|
String |
getFormattedPredictPhysical()
Returns the physical quantity formatted to its converter's format.
|
String |
getFormattedPredictPhysicalMax()
Returns the physical maximum formatted to its converter's format.
|
String |
getFormattedPredictPhysicalMin()
Returns the physical minimum formatted to its converter's format.
|
String |
getFormattedPredictRaw()
Returns the predicted raw reading as a string, formatted according to the
raw formatter.
|
double |
getPredictMax()
Returns the maximum raw predicted value as a primitive double or nan if
undefined.
|
double |
getPredictMin()
Returns the minimum raw predicted value as a primitive double or nan if
undefined.
|
double |
getPredictPhysical()
Returns the predicted measurement in physically meaningful
quantities or NaN if undefined.
|
double |
getPredictPhysicalMax()
Returns the maximum predicted measurement in physically meaningful
quantities or NaN if undefined.
|
double |
getPredictPhysicalMin()
Returns the minimum predicted measurement in physically meaningful
quantities or NaN if undefined.
|
double |
getPredictRaw()
Returns the raw predicted value as a primitive double or nan if
undefined.
|
protected String |
getValueString(Double meas)
Formats a single raw reading according to the
RawDataEvent.rawconvert
conversion object, without adding any errors. |
void |
setPredictMinMax(double min,
double max)
Sets the minimum and maximum of the predicted raw value.
|
void |
setPredictRaw(double predict)
Sets the predicted value as a primitive double.
|
String |
toString()
Adds the predictive values to the string representation.
|
getDateString, getFormattedPhysicalMax, getFormattedPhysicalMin, getFormattedRawMax, getFormattedRawMin, getMinMaxString, getN, getPhysicalMax, getPhysicalMin, getRawMax, getRawMin, setN, setRawMinMaxformatPhysical, 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 Double predictraw
private Double predictmax
private Double predictmin
public PredictiveDataEvent(Object src)
src - The event source.public PredictiveDataEvent(DataEvent de)
public void setPredictRaw(double predict)
public double getPredictRaw()
public String getFormattedPredictRaw()
public void setPredictMinMax(double min,
double max)
public double getPredictMin()
public String getFormattedPredictMin()
public double getPredictMax()
public String getFormattedPredictMax()
public double getPredictPhysical()
public String getFormattedPredictPhysical()
public double getPredictPhysicalMin()
public String getFormattedPredictPhysicalMin()
public double getPredictPhysicalMax()
public String getFormattedPredictPhysicalMax()
public String toString()
toString in class CumulativeDataEventprotected String getValueString(Double meas)
RawDataEvent.rawconvert
conversion object, without adding any errors.