ist.palcom.services.saturimeter
Class SaturimeterDevice
java.lang.Object
ist.palcom.device.AbstractDevice
ist.palcom.services.saturimeter.SaturimeterDevice
- All Implemented Interfaces:
- java.lang.Runnable
public class SaturimeterDevice
- extends AbstractDevice
A device that wrappes a Masimo Radical Pulse Oximeter.
This particular Pulse Oximeter communicates over a RS232 line
Heartrate and SPO2 values together with a timestamp once every second.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SaturimeterDevice
public SaturimeterDevice(DeviceID deviceID,
java.lang.String name)
initDevice
protected void initDevice()
throws java.io.IOException
- Description copied from class:
AbstractDevice
- Initialize the device. Called from a PalcomThread. Here the actual setup
is done. Subclasses override this method, and call super.initDevice from
there.
- Overrides:
initDevice in class AbstractDevice
- Throws:
java.io.IOException
createDeviceContext
protected DeviceContext createDeviceContext(DeviceID deviceID,
PalcomScheduler scheduler)
- Description copied from class:
AbstractDevice
- Creates the
DeviceContext of the device. This method has to be
implemented in a concrete subclass.
- Specified by:
createDeviceContext in class AbstractDevice
- Parameters:
deviceID - The device ID.scheduler - The scheduler.
- Returns:
- The DeviceContext
getDeviceID
public DeviceID getDeviceID()
stopDevice
protected void stopDevice()
throws java.io.IOException
- stopDevice is overridden for stopping the service.
- Overrides:
stopDevice in class AbstractDevice
- Throws:
java.io.IOException
main
public static void main(java.lang.String[] args)
- A main method that runs an EchoDevice.
getAssemblyScript
public java.lang.String getAssemblyScript()