|
1.0.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.soda.dk.core.EscObject
org.eclipse.soda.dk.device.Control
org.eclipse.soda.dk.measurement.Measurement
org.eclipse.soda.dk.measurement.Measurements
public class Measurements
The Measurements class implements the MeasurementService interface.
Control,
Measurement,
ControlService,
ErrorListener,
MeasurementService,
MeasurementListener,
MessageHandler| Field Summary |
|---|
| Fields inherited from class org.eclipse.soda.dk.device.Control |
|---|
EXCEPTION_READ_FAILED_RESOURCE, SETVALUEEXCEPTION_RESOURCE |
| Fields inherited from class org.eclipse.soda.dk.core.EscObject |
|---|
CLONE_EXCEPTION_RESOURCE, EMPTY_BYTES, EMPTY_STRING, ERROR_OCCURRED_EXCEPTION_RESOURCE, ID_FILTER_KEY, ID_KEY, ID_KEY_ANY, INTEGER_TABLE, KEY_KEY, LOG_DEBUG, LOG_ERROR, LOG_INFO, LOG_TRACE, LOG_WARNING, PREFIX_KEY, RESOURCE_BUNDLE, SLEEP_EXCEPTION_RESOURCE, SYSTEM_INFO_RESOURCE, TO_STRING_CONFIGURATION_KEYS, TRACE_LEVEL_HIGH, TRACE_LEVEL_LOW, TRACE_LEVEL_MAX, TRACE_LEVEL_MIN, TRACE_LEVEL_NONE, TRACE_LEVEL_NORMAL, TRACELEVEL_KEY, UNKNOWN_ERROR_RESOURCE |
| Constructor Summary | |
|---|---|
Measurements(java.lang.String key,
java.lang.Object value,
MeasurementService[] measurements)
Constructs an Measurements object using the input parameter(s). |
|
| Method Summary | |
|---|---|
void |
addInternalMeasurementListener()
Adds the specified listener to receive listener notification. |
void |
executeRead()
Perform the executeRead action method. |
void |
executeWrite(java.lang.Object value)
Perform the executeWrite action method. |
MeasurementService[] |
getMeasurements()
Gets the org.eclipse.soda.dk.measurement.service.MeasurementService [] measurements property value. |
void |
measurementChanged(MeasurementService source,
java.lang.Object timestamp,
java.lang.Object newValue,
java.lang.Object oldValue)
This method is fired to all Listeners each time the value of the measurement changes. |
java.lang.Object |
read(long timeout)
Perform the read method and return the Object result. |
protected void |
setMeasurements(MeasurementService[] measurements)
Sets the measurements property. |
void |
setValue(java.lang.Object value)
This method forces a synchronous write of the locally cached value. |
| Methods inherited from class org.eclipse.soda.dk.measurement.Measurement |
|---|
addMeasurementListener, fireErrorOccurred, fireErrorOccurred, fireValueChanged, getMeasurementListener, getTimestamp, getUnits, getValue, getValueRaw, removeMeasurementListener, reportError, setMeasurementListener, setRawValue, setTimestamp, setValue |
| Methods inherited from class org.eclipse.soda.dk.device.Control |
|---|
attemptRecoveryFromError, equalsValue, errorOccurred, getCodeKey, getErrorSeverity, getKey, getQualifiedKey, getResource, setKey, setQualifiedKey, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.eclipse.soda.dk.transport.service.ErrorListener |
|---|
errorOccurred |
| Methods inherited from interface org.eclipse.soda.dk.device.service.ControlService |
|---|
getKey |
| Constructor Detail |
|---|
public Measurements(java.lang.String key,
java.lang.Object value,
MeasurementService[] measurements)
Measurements object using the input parameter(s).
key - java.lang.Stringvalue - java.lang.Objectmeasurements - org.eclipse.soda.dk.measurement.service.MeasurementService[]getMeasurements(),
setMeasurements(MeasurementService[])| Method Detail |
|---|
public void addInternalMeasurementListener()
public void executeRead()
executeRead in interface MeasurementServiceexecuteRead in class MeasurementMeasurementService.executeRead()public void executeWrite(java.lang.Object value)
executeWrite in interface MeasurementServiceexecuteWrite in class Measurementvalue - java.lang.ObjectMeasurementService.executeWrite(java.lang.Object)public MeasurementService[] getMeasurements()
org.eclipse.soda.dk.measurement.service.MeasurementService [] measurements property value.
MeasurementService[]) value.Measurements(String,Object,MeasurementService[]),
setMeasurements(MeasurementService[])
public void measurementChanged(MeasurementService source,
java.lang.Object timestamp,
java.lang.Object newValue,
java.lang.Object oldValue)
measurementChanged in interface MeasurementListenersource - MeasurementService which changed.timestamp - The time at which the value change was detected.newValue - The new value of the MeasurementService.oldValue - The old value of the MeasurementService.
public java.lang.Object read(long timeout)
throws java.lang.RuntimeException
Object result.
read in interface MeasurementServiceread in class Measurementtimeout - long
Object) value.
- href="java.lang.RuntimeException.html">RuntimeException Thrown if the RuntimeException exception condition occurs.
java.lang.RuntimeException - Thrown if the read command does not result in a response from the device.- See Also:
MeasurementService.read(long)protected void setMeasurements(MeasurementService[] measurements)
measurements - The new property value (org.eclipse.soda.dk.measurement.service.MeasurementService[]).Measurements(String,Object,MeasurementService[]),
getMeasurements()public void setValue(java.lang.Object value)
setValue in interface MeasurementServicesetValue in class Measurementvalue - The new property value (java.lang.Object).Measurement.getValue(),
Measurement.setRawValue(Object,Object),
Measurement.setValue(Object,Object)
|
1.0.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||