|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.EventObject
util.rmi.RmiEvent
stella.DataEvent
stella.sensor.RawDataEvent
stella.sensor.CumulativeDataEvent
public class CumulativeDataEvent
The data event that is used for shuffling a bunch of measurements into a single data event.
| Field Summary | |
|---|---|
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. |
| Fields inherited from class stella.DataEvent |
|---|
FORMAT |
| Fields inherited from class util.rmi.RmiEvent |
|---|
localHost, sourceName |
| Fields inherited from class java.util.EventObject |
|---|
source |
| Constructor Summary | |
|---|---|
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. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class stella.sensor.RawDataEvent |
|---|
formatPhysical, formatRaw, getFormattedPhysical, getFormattedPhysicalDeviation, getFormattedRaw, getFormattedRawDeviation, getPhysical, getPhysicalDeviation, getRaw, getRawConvert, getRawDeviation, getRawFormat, getRawString, getSigmaFormat, setRaw, setRawConvert, setRawDeviation, setRawFormat, setSigmaFormat |
| Methods inherited from class stella.DataEvent |
|---|
getMeasurement, getTimeOfMeasure, isValid, setMeasurement, setTimeOfMeasure, setValid |
| Methods inherited from class util.rmi.RmiEvent |
|---|
getHost, getSourceName, setSourceName |
| Methods inherited from class java.util.EventObject |
|---|
getSource |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private Integer n
private Double rawmax
private Double rawmin
| Constructor Detail |
|---|
public CumulativeDataEvent(Object src)
public CumulativeDataEvent(DataEvent source)
| Method Detail |
|---|
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 RawDataEvent
protected 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.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||