|
2009-01-09 1.2.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 boolean |
isMultiplexMethod
Define the is multiplex method (boolean) field. |
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, SET_VALUE_EXCEPTION_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,
ChannelService channel,
java.lang.Object data)
Call method with the specified code, channel and data parameters and return the Object result. |
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(ChannelService channel)
Execute read with the specified channel parameter. |
void |
executeWrite(ChannelService channel,
java.lang.Object value)
Execute write with the specified channel and value parameters. |
DeviceService |
getDevice()
Gets the device (DeviceService) value. |
java.lang.Object |
getValue(ChannelService channel)
Get value with the specified channel parameter and return the Object result. |
void |
setDevice(DeviceService device)
Sets the device value. |
void |
setValue(ChannelService channel,
java.lang.Object value)
Set value with the specified channel and value parameters. |
| Methods inherited from class org.eclipse.soda.dk.measurement.Measurement |
|---|
addMeasurementListener, addMeasurementListener, executeRead, executeWrite, fireErrorOccurred, fireErrorOccurred, fireValueChanged, fireValueChanged, getMeasurementListener, getTimestamp, getTimestamp, getTimestampKey, getUnits, getValue, getValueRaw, getValueRaw, read, read, removeMeasurementListener, reportError, setMeasurementListener, setRawValue, setRawValue, setTimestamp, setTimestamp, setValue, setValue, setValue |
| Methods inherited from class org.eclipse.soda.dk.device.Control |
|---|
attemptRecoveryFromError, equalsValue, errorOccurred, findMethod, 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 boolean isMultiplexMethod
protected DeviceService device
| Constructor Detail |
|---|
public MethodMeasurement(java.lang.String key)
key - The key (String) parameter.MethodMeasurement(String,Method,Object),
MethodMeasurement(String,Object)
public MethodMeasurement(java.lang.String key,
java.lang.reflect.Method method,
java.lang.Object value)
key - The key (String) parameter.method - The method (Method) parameter.value - The value (Object) parameter.MethodMeasurement(String),
MethodMeasurement(String,Object)
public MethodMeasurement(java.lang.String key,
java.lang.Object value)
key - The key (String) parameter.value - The value (Object) parameter.MethodMeasurement(String),
MethodMeasurement(String,Method,Object)| Method Detail |
|---|
public java.lang.Object callMethod(int code,
ChannelService channel,
java.lang.Object data)
code - The code (int) parameter.channel - The channel (ChannelService) parameter.data - The data (Object) parameter.
Object) value.callMethod(int,Object)
public java.lang.Object callMethod(int code,
java.lang.Object data)
code - The code (int) parameter.data - The data (Object) parameter.
Object) value.callMethod(int,ChannelService,Object)public void executeRead(ChannelService channel)
executeRead in interface MeasurementServiceexecuteRead in class Measurementchannel - The channel (ChannelService) parameter.Measurement.executeRead()
public void executeWrite(ChannelService channel,
java.lang.Object value)
executeWrite in interface MeasurementServiceexecuteWrite in class Measurementchannel - The channel (ChannelService) parameter.value - The value (Object) parameter.Measurement.executeWrite(Object)public DeviceService getDevice()
getDevice in interface DeviceControlDeviceService) value.setDevice(DeviceService)public java.lang.Object getValue(ChannelService channel)
getValue in interface MeasurementServicegetValue in class Measurementchannel - The channel (ChannelService) parameter.
Object) value.setValue(ChannelService,Object)public void setDevice(DeviceService device)
setDevice in interface DeviceControldevice - The device (DeviceService) parameter.getDevice()
public void setValue(ChannelService channel,
java.lang.Object value)
setValue in interface MeasurementServicesetValue in class Measurementchannel - The channel (ChannelService) parameter.value - The value (Object) parameter.getValue(ChannelService)
|
2009-01-09 1.2.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||