ist.palcom.device
Class AbstractUDPDevice

java.lang.Object
  extended by ist.palcom.device.AbstractDevice
      extended by ist.palcom.device.AbstractUDPDevice
All Implemented Interfaces:
java.lang.Runnable
Direct Known Subclasses:
AISDevice, AlarmHRHRDevice, AssemblyLauncherDevice, AxisCamera, BackendServerDevice, CameraDevice, CommandLineAssembler, DisplayDevice, EchoDevice, EclipseBrowserDevice, GenericDevice, GPSDevice, Handheld, IncubatorAlarmDevice, Laptop, Laptop, MattressDevice, MStone, PalBoxDevice, ProximityDevice, Screen

public abstract class AbstractUDPDevice
extends AbstractDevice

An AbstractDevice that uses UDP. This is such a common case that a special subclass is motivated. A UDPDeviceContext is created.


Field Summary
 
Fields inherited from class ist.palcom.device.AbstractDevice
context, scheduler
 
Constructor Summary
protected AbstractUDPDevice(java.lang.String name)
           
protected AbstractUDPDevice(java.lang.String name, DeviceID deviceID)
           
 
Method Summary
protected  DeviceContext createDeviceContext(DeviceID deviceID, PalcomScheduler scheduler)
          Creates the DeviceContext of the device.
 
Methods inherited from class ist.palcom.device.AbstractDevice
getDeviceContext, getDeviceInfo, getName, getRootPath, initDevice, run, safePutEvent, setHeartBeatPeriod, stop, stopDevice
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractUDPDevice

protected AbstractUDPDevice(java.lang.String name,
                            DeviceID deviceID)

AbstractUDPDevice

protected AbstractUDPDevice(java.lang.String name)
                     throws java.io.IOException
Throws:
java.io.IOException
Method Detail

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