|
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.UnitsMeasurement
org.eclipse.soda.dk.measurement.DataMeasurement
org.eclipse.soda.dk.measurement.computed.ControlsMeasurement
public class ControlsMeasurement
| Field Summary | |
|---|---|
protected static int |
FLOATING_TYPE
Define the floating type (int) constant. |
protected static int |
INT_TYPE
Define the int type (int) constant. |
protected static int |
NULL_TYPE
Define the null type (int) constant. |
protected static int |
OTHER_TYPE
Define the other type (int) constant. |
protected static int |
STRING_TYPE
Define the string type (int) constant. |
| 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 | |
|---|---|
ControlsMeasurement(java.lang.String key,
java.lang.Object value,
UnitsService units,
TransformService transform,
ControlService[] controls)
Constructs an instance of this class from the specified key, value, units, transform and controls parameters. |
|
| Method Summary | |
|---|---|
ControlService[] |
getControls()
Gets the controls (ControlService[]) value. |
double |
getDouble(java.lang.Object object)
Get double with the specified object parameter and return the double result. |
long |
getLong(java.lang.Object object)
Get long with the specified object parameter and return the long result. |
int |
getObjectType(java.lang.Object object)
Get object type with the specified object parameter and return the int result. |
void |
measurementChanged(MeasurementService source,
java.lang.Object timestamp,
java.lang.Object newValue,
java.lang.Object oldValue)
Measurement changed with the specified source, timestamp, new value and old value parameters. |
void |
setControls(ControlService[] controls)
Sets the controls value. |
void |
signalOccurred(SignalService source,
java.lang.Object timestamp,
java.lang.Object data)
Signal occurred with the specified source, timestamp and data parameters. |
| Methods inherited from class org.eclipse.soda.dk.measurement.DataMeasurement |
|---|
getTransform, setRawValue, setTransform |
| Methods inherited from class org.eclipse.soda.dk.measurement.UnitsMeasurement |
|---|
getUnits, setUnits |
| Methods inherited from class org.eclipse.soda.dk.measurement.Measurement |
|---|
addMeasurementListener, executeRead, executeWrite, fireErrorOccurred, fireErrorOccurred, fireValueChanged, getMeasurementListener, getTimestamp, getValue, getValueRaw, read, removeMeasurementListener, reportError, setMeasurementListener, setTimestamp, setValue, 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.transport.service.ErrorListener |
|---|
errorOccurred |
| Methods inherited from interface org.eclipse.soda.dk.device.service.ControlService |
|---|
getKey |
| Field Detail |
|---|
protected static final int NULL_TYPE
protected static final int STRING_TYPE
protected static final int INT_TYPE
protected static final int FLOATING_TYPE
protected static final int OTHER_TYPE
| Constructor Detail |
|---|
public ControlsMeasurement(java.lang.String key,
java.lang.Object value,
UnitsService units,
TransformService transform,
ControlService[] controls)
key - The key (String) parameter.value - The value (Object) parameter.units - The units (UnitsService) parameter.transform - The transform (TransformService) parameter.controls - The controls (ControlService[]) parameter.| Method Detail |
|---|
public ControlService[] getControls()
ControlService[]) value.setControls(ControlService[])public double getDouble(java.lang.Object object)
object - The object (Object) parameter.
double) value.public long getLong(java.lang.Object object)
object - The object (Object) parameter.
long) value.public int getObjectType(java.lang.Object object)
object - The object (Object) parameter.
int) value.
public void measurementChanged(MeasurementService source,
java.lang.Object timestamp,
java.lang.Object newValue,
java.lang.Object oldValue)
measurementChanged in interface MeasurementListenersource - The source (MeasurementService) parameter.timestamp - The timestamp (Object) parameter.newValue - The new value (Object) parameter.oldValue - The old value (Object) parameter.public void setControls(ControlService[] controls)
controls - The controls (ControlService[]) parameter.getControls()
public void signalOccurred(SignalService source,
java.lang.Object timestamp,
java.lang.Object data)
signalOccurred in interface SignalListenersource - The source (SignalService) parameter.timestamp - The timestamp (Object) parameter.data - The data (Object) parameter.
|
1.0.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||