|
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.MethodMeasurement
public class MethodMeasurement
| Field Summary | |
|---|---|
protected DeviceService |
device
Define the device (DeviceService) field. |
static int |
GET_OPERATION
Define the get operation (int) constant. |
static java.lang.String |
HANDLE_METHOD
Define the handle set (String) constant. |
protected java.lang.reflect.Method |
method
Define the method (Method) field. |
static int |
READ_OPERATION
Define the read operation (int) constant. |
static int |
SET_OPERATION
Define the set operation (int) constant. |
static int |
WRITE_OPERATION
Define the write operation (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 | |
|---|---|
MethodMeasurement(java.lang.String key)
Constructs an instance of this class from the specified key parameter. |
|
MethodMeasurement(java.lang.String key,
java.lang.reflect.Method method,
java.lang.Object value)
Constructs an instance of this class from the specified key, method and value parameters. |
|
MethodMeasurement(java.lang.String key,
java.lang.Object value)
Constructs an instance of this class from the specified key and value parameters. |
|
| Method Summary | |
|---|---|
java.lang.Object |
callMethod(int code,
java.lang.Object data)
Call method with the specified code and data parameters and return the Object result. |
void |
executeRead()
Execute read. |
void |
executeWrite(java.lang.Object value)
Execute write with the specified value parameter. |
DeviceService |
getDevice()
Gets the device (DeviceService) value. |
java.lang.Object |
getValue()
Gets the value (Object) value. |
void |
setDevice(DeviceService device)
Sets the device value. |
void |
setValue(java.lang.Object value)
Trigger with the specified data parameter. |
| Methods inherited from class org.eclipse.soda.dk.measurement.Measurement |
|---|
addMeasurementListener, fireErrorOccurred, fireErrorOccurred, fireValueChanged, getMeasurementListener, getTimestamp, getUnits, getValueRaw, read, 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.device.service.ControlService |
|---|
getKey |
| Field Detail |
|---|
public static final java.lang.String HANDLE_METHOD
public static final int GET_OPERATION
public static final int READ_OPERATION
public static final int WRITE_OPERATION
public static final int SET_OPERATION
protected java.lang.reflect.Method method
protected DeviceService device
| Constructor Detail |
|---|
public MethodMeasurement(java.lang.String key,
java.lang.Object value)
String) parameter. The value (Object)
parameter.
key - The key (String) parameter.value - The value (Object) parameter.MethodMeasurement(String,Method,Object),
MethodMeasurement(String)
public MethodMeasurement(java.lang.String key,
java.lang.reflect.Method method,
java.lang.Object value)
String) parameter.
The method (Method) parameter.
The value (Object) parameter.
key - The key (String) parameter.method - The method (Method) parameter.value - The value (Object) parameter.MethodMeasurement(String,Object),
MethodMeasurement(String)public MethodMeasurement(java.lang.String key)
String) parameter.
key - The key (String) parameter.MethodMeasurement(String,Object),
MethodMeasurement(String,Method,Object)| Method Detail |
|---|
public java.lang.Object callMethod(int code,
java.lang.Object data)
code - The code (int) parameter.data - The data (Object) parameter.
Object) value.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 - The value (Object) parameter.MeasurementService.executeWrite(java.lang.Object)public DeviceService getDevice()
getDevice in interface DeviceControlDeviceService) value.setDevice(DeviceService)public java.lang.Object getValue()
getValue in interface MeasurementServicegetValue in class MeasurementObject) value.setValue(Object)public void setDevice(DeviceService device)
DeviceService)
parameter.
setDevice in interface DeviceControldevice - The device (DeviceService) parameter.getDevice()public void setValue(java.lang.Object value)
Object)
parameter.
setValue in interface MeasurementServicesetValue in class Measurementvalue - The value (Object) parameter.getValue()
|
1.0.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||