ist.palcom.services
Class SaturimeterService

java.lang.Object
  extended by AbstractService
      extended by ist.palcom.services.SaturimeterService

public class SaturimeterService
extends AbstractService

The Saturimeter service has responsibility for providing SpO2 values and heart rate for a baby attached to the saturimeter. It will need a PalCom node to connect to the other services.

An example of a deployment with SaturimeterService:

The significant classes in the service are shown in the figure below. The SaturimeterDevice is the class that plays the role of the servicemanager found in the ontology.

The significant communication related to the service is shown in the figures below. The first figure shows how the scheduler triggers the SaturimeterService to ask for a new value on the SerialLine. It is the Saturimeter, that sends the data as a characterstream through the SerialLine, and they are return parameters to the saturimeterservice. The SaturimeterService then forwards the data in the way it is expected by the assemblymanager, which is then in turn able to propagate them on in the assembly.

In the figure below the assembly communication is shown. The HeartrateInspectionService is interested in knowing the heart rate. The redundancy of this value from the SaturimeterService and the RespiratorService is used in the assembly to provide that. If there is an inconsistency, that triggers an alarm in a given policy about the values, the AlarmService is asked to invoke an alarm.

Can play a part in the respirator-saturimeter-biobelt assembly

See Also:

Coding status - The service is applicable, but could be refactored to be more generally useful.


Constructor Summary
SaturimeterService(DeviceContext context, String urnLeaf)
           
 
Method Summary
 void start()
          The start method is overridden for scheduling the command thread.
 void stop()
          The stop method is overridden for terminating the command thread.
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, println, toString
 

Constructor Detail

SaturimeterService

public SaturimeterService(DeviceContext context,
                          String urnLeaf)
                   throws IOException
Parameters:
context - a deviceContext
urnLeaf -
Throws:
IOException
Method Detail

start

public void start()
           throws IOException
The start method is overridden for scheduling the command thread.

Throws:
IOException

stop

public void stop()
          throws IOException
The stop method is overridden for terminating the command thread.

Throws:
IOException