ist.palcom.incubator.display
Class DisplayDevice

java.lang.Object
  extended by ist.palcom.device.AbstractDevice
      extended by ist.palcom.device.AbstractUDPDevice
          extended by ist.palcom.incubator.display.DisplayDevice
All Implemented Interfaces:
Runnable

public class DisplayDevice
extends AbstractUDPDevice


Field Summary
 
Fields inherited from class ist.palcom.device.AbstractDevice
context, scheduler
 
Constructor Summary
DisplayDevice(DeviceID deviceID)
           
 
Method Summary
protected  DeviceContext createDeviceContext(DeviceID deviceID, PalcomScheduler scheduler)
          Creates the DeviceContext of the device.
protected  void initDevice()
          Initialize the device.
static void main(String[] args)
          A main method that runs an EchoDevice.
protected  void stopDevice()
          Stop the device.
 
Methods inherited from class ist.palcom.device.AbstractDevice
getDeviceContext, getDeviceInfo, getName, run, safePutEvent, setHeartBeatPeriod, setName, stop
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, println, toString
 

Constructor Detail

DisplayDevice

public DisplayDevice(DeviceID deviceID)
Method Detail

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
Description copied from class: AbstractDevice
Stop the device. Called from a PalcomThread. Here the actual cleanup is done. Subclasses override this method, and call super.stopDevice from there.

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.

Overrides:
createDeviceContext in class AbstractUDPDevice
Parameters:
deviceID - The device ID.
scheduler - The scheduler.
Returns:
The DeviceContext

main

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