|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.ObjectAbstractService
ist.palcom.services.SaturimeterService
public class SaturimeterService
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
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 |
|---|
public SaturimeterService(DeviceContext context,
String urnLeaf)
throws IOException
context - a deviceContexturnLeaf -
IOException| Method Detail |
|---|
public void start()
throws IOException
IOException
public void stop()
throws IOException
IOException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||