ist.palcom.services
Class BioBeltDevice
java.lang.Object
ist.palcom.device.AbstractDevice
ist.palcom.services.BioBeltDevice
- All Implemented Interfaces:
- Runnable
public class BioBeltDevice
- extends AbstractDevice
BioBeltDevice
public BioBeltDevice(DeviceID deviceID)
initDevice
protected void initDevice()
throws 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:
IOException
stopDevice
protected void stopDevice()
throws IOException
- stopDevice is overridden for stopping the service.
- Overrides:
stopDevice in class AbstractDevice
- Throws:
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(String[] args)
- A main method that runs an EchoDevice.
getAssemblyScript
public String getAssemblyScript()