public class DataEvent extends RmiEvent implements PostingEvent
| Modifier and Type | Field and Description |
|---|---|
protected static DateFormat |
FORMAT
The Time formatter.
|
private Object |
measurement
The mesured value.
|
private static long |
serialVersionUID |
private Date |
timeofmeasure
The date when the data event occured.
|
private boolean |
valid
Whether the data is valid.
|
localHost, sourceNamesource| Modifier | Constructor and Description |
|---|---|
|
DataEvent(DataEvent copy)
Constructs a fully qualified DataEvent.
|
protected |
DataEvent(Object src)
Protected constructor for data events where only the source is
specified.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
getHost, getSourceName, setSourceNamegetSourceprivate static final long serialVersionUID
protected static final DateFormat FORMAT
private Date timeofmeasure
private Object measurement
private boolean valid
protected DataEvent(Object src)
public DataEvent(DataEvent copy)
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()