com.biocomfort.TO.data_consumer
Interface MeasurementProcessor

All Known Implementing Classes:
RestBloodGlucoseMeasurementProcessor, RestBloodPressureMeasurementProcessor, RestMeasurementProcessor, RestWeightMeasurementProcessor

public interface MeasurementProcessor

The MeasurementProcessor interface defines a processor to handle concrete measurement data of a medical device. A class thats implements this interface must define a synchronous method that processes the measurement data. MeasurementProcessors are used by implementations of the DataConsumer interface.

See Also:
DataConsumer

Method Summary
 void processMeasurementAndWait(MedicalDeviceTO medicalDevice, TO data)
          Processes a concrete measurement data and blocks the executing thread until the processing has finished.
 

Method Detail

processMeasurementAndWait

void processMeasurementAndWait(MedicalDeviceTO medicalDevice,
                               TO data)
                               throws java.lang.Exception
Processes a concrete measurement data and blocks the executing thread until the processing has finished. In case that an error occured it throws an Exception object.

Parameters:
medicalDevice - the medical device that sends the data
data - the received measurement data
Throws:
java.lang.Exception - if an error occured