|
||||||||||
| 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
public class DataEvent
This class defines a generic data event. A single data point will at least consist of the time of the measurement and the measured datum. In this class, the primary data type is not defined, therefore we asume that it can be described by an object type. A validity identifier is also present and can be set. Further subclasses can add additional data, like an error estimate or simply a duration of the measurement, outer observing conditions and so forth.
| Field Summary | |
|---|---|
protected static DateFormat |
FORMAT
The Time formatter. |
private Object |
measurement
The mesured value. |
private Date |
timeofmeasure
The date when the data event occured. |
private boolean |
valid
Whether the data is valid. |
| Fields inherited from class util.rmi.RmiEvent |
|---|
localHost, sourceName |
| Fields inherited from class java.util.EventObject |
|---|
source |
| Constructor Summary | |
|---|---|
|
DataEvent(DataEvent copy)
Constructs a fully qualified DataEvent. |
protected |
DataEvent(Object src)
Protected constructor for data events where only the source is specified. |
| Method Summary | |
|---|---|
Object |
getMeasurement()
Gets the measurement. |
Date |
getTimeOfMeasure()
Returns the date when the measurement was taken. |
boolean |
isValid()
Returns true if the data is valid. |
void |
setMeasurement(Object what)
Sets the measurement. |
void |
setTimeOfMeasure(Date time)
Sets the date of the measurement and its duration. |
void |
setValid(boolean good)
Sets the validity of the data. |
String |
toString()
Returns a String representation of this data event. |
| 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 |
|---|
protected static final DateFormat FORMAT
private Date timeofmeasure
private Object measurement
private boolean valid
| Constructor Detail |
|---|
protected DataEvent(Object src)
public DataEvent(DataEvent copy)
| Method Detail |
|---|
public void setTimeOfMeasure(Date time)
public final Date getTimeOfMeasure()
public void setMeasurement(Object what)
public Object getMeasurement()
public void setValid(boolean good)
public boolean isValid()
public String toString()
toString in class RmiEvent
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||