ist.palcom.services.biobelt
Class BioBeltDevice

java.lang.Object
  extended by ist.palcom.device.AbstractDevice
      extended by ist.palcom.services.biobelt.BioBeltDevice
All Implemented Interfaces:
java.lang.Runnable

public class BioBeltDevice
extends AbstractDevice

A Device that wrappes a Biobelt into the Palcom world. A BioBelt is a specially designed biosensing belt that can be used in for example a Neonatal Intensive Care Unit.


Field Summary
 
Fields inherited from class ist.palcom.device.AbstractDevice
context, scheduler
 
Constructor Summary
BioBeltDevice(DeviceID deviceID, java.lang.String name)
           
 
Method Summary
protected  DeviceContext createDeviceContext(DeviceID deviceID, PalcomScheduler scheduler)
          Creates the DeviceContext of the device.
 java.lang.String getAssemblyScript()
           
 DeviceID getDeviceID()
           
protected  void initDevice()
          Initialize the device.
static void main(java.lang.String[] args)
          A main method that runs an EchoDevice.
protected  void stopDevice()
          stopDevice is overridden for stopping the service.
 
Methods inherited from class ist.palcom.device.AbstractDevice
getDeviceContext, getDeviceInfo, getName, getRootPath, run, safePutEvent, setHeartBeatPeriod, stop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BioBeltDevice

public BioBeltDevice(DeviceID deviceID,
                     java.lang.String name)
Method Detail

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

stopDevice

protected void stopDevice()
                   throws java.io.IOException
stopDevice is overridden for stopping the service.

Overrides:
stopDevice 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()

main

public static void main(java.lang.String[] args)
A main method that runs an EchoDevice.


getAssemblyScript

public java.lang.String getAssemblyScript()