1.0.0

org.eclipse.soda.dk.measurement.computed
Class ControlsMeasurement

java.lang.Object
  extended by org.eclipse.soda.dk.core.EscObject
      extended by org.eclipse.soda.dk.device.Control
          extended by org.eclipse.soda.dk.measurement.Measurement
              extended by org.eclipse.soda.dk.measurement.UnitsMeasurement
                  extended by org.eclipse.soda.dk.measurement.DataMeasurement
                      extended by org.eclipse.soda.dk.measurement.computed.ControlsMeasurement
All Implemented Interfaces:
ControlService, MeasurementListener, MeasurementService, SignalListener, ErrorListener
Direct Known Subclasses:
CountMeasurement, TotalMeasurement

public class ControlsMeasurement
extends DataMeasurement
implements SignalListener, MeasurementListener

Version:
1.0.0

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 org.eclipse.soda.dk.core.EscObject
createDefaultLogService, createException, createException, createInteger, createIntegerTable, createNumber, format, getBoolean, getConfigurationService, getCurrentTimestamp, getDefaultLogService, getDefaultResource, getFloat, getInt, getLoadLibraryName, getLogDetails, getLogDetails0, getLogDetails1, getLogDetails2, getLogDetails3, getLogDetails4, getLogDetails5, getLogDetails6, getLogDetails7, getLogService, getLong, getObject, getOutputName, getSimpleClassName, getStaticBoolean, getStaticFloat, getStaticInt, getStaticLong, getStaticObject, getStaticString, getString, getTraceLevel, getVmLibraryVersion, handleError, handleError, handleError, handleStaticError, handleStaticException, isDebug, isTrace, loadService, log, log, report, report, report, report, report, report, reportSystemInfo, setDebug, setDefaultLogService, setLogService, setTraceLevel, shouldLog, sleep, startupEscStatic, toStringConfigurationKeys, toStringInfo
 
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

NULL_TYPE

protected static final int NULL_TYPE
Define the null type (int) constant.

See Also:
Constant Field Values

STRING_TYPE

protected static final int STRING_TYPE
Define the string type (int) constant.

See Also:
Constant Field Values

INT_TYPE

protected static final int INT_TYPE
Define the int type (int) constant.

See Also:
Constant Field Values

FLOATING_TYPE

protected static final int FLOATING_TYPE
Define the floating type (int) constant.

See Also:
Constant Field Values

OTHER_TYPE

protected static final int OTHER_TYPE
Define the other type (int) constant.

See Also:
Constant Field Values
Constructor Detail

ControlsMeasurement

public 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.

Parameters:
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

getControls

public ControlService[] getControls()
Gets the controls (ControlService[]) value.

Returns:
The controls (ControlService[]) value.
See Also:
setControls(ControlService[])

getDouble

public double getDouble(java.lang.Object object)
Get double with the specified object parameter and return the double result.

Parameters:
object - The object (Object) parameter.
Returns:
Results of the get double (double) value.

getLong

public long getLong(java.lang.Object object)
Get long with the specified object parameter and return the long result.

Parameters:
object - The object (Object) parameter.
Returns:
Results of the get long (long) value.

getObjectType

public int getObjectType(java.lang.Object object)
Get object type with the specified object parameter and return the int result.

Parameters:
object - The object (Object) parameter.
Returns:
Results of the get object type (int) value.

measurementChanged

public 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.

Specified by:
measurementChanged in interface MeasurementListener
Parameters:
source - The source (MeasurementService) parameter.
timestamp - The timestamp (Object) parameter.
newValue - The new value (Object) parameter.
oldValue - The old value (Object) parameter.

setControls

public void setControls(ControlService[] controls)
Sets the controls value.

Parameters:
controls - The controls (ControlService[]) parameter.
See Also:
getControls()

signalOccurred

public void signalOccurred(SignalService source,
                           java.lang.Object timestamp,
                           java.lang.Object data)
Signal occurred with the specified source, timestamp and data parameters.

Specified by:
signalOccurred in interface SignalListener
Parameters:
source - The source (SignalService) parameter.
timestamp - The timestamp (Object) parameter.
data - The data (Object) parameter.

1.0.0

Copyright (c) 1999, 2007 IBM