ist.palcom.simulated.handheld
Class Handheld

java.lang.Object
  extended by ist.palcom.device.AbstractDevice
      extended by ist.palcom.device.AbstractUDPDevice
          extended by ist.palcom.simulated.handheld.Handheld
All Implemented Interfaces:
CommandEventListener, java.lang.Runnable
Direct Known Subclasses:
GeoTaggerHandheld

public class Handheld
extends AbstractUDPDevice
implements CommandEventListener


Field Summary
 
Fields inherited from class ist.palcom.device.AbstractDevice
context, scheduler
 
Constructor Summary
Handheld(java.lang.String name, DeviceID deviceID)
           
 
Method Summary
 void closeConnection(PRDConnection info)
           
 void commandReceived(CommandEvent e)
          A command has been invoked in a user interface.
 void establishConnection(PRDConnection info)
           
 BrowserPanel getBrowserPanel()
           
 LocalSID getControlCustomerLocalSID()
           
protected  void initDevice()
          Initialize the device.
 void initiateDiscovery(long timeout)
           
 void removeServiceProxy(ServiceProxy sp)
           
protected  void stopDevice()
          Stop the device.
 
Methods inherited from class ist.palcom.device.AbstractUDPDevice
createDeviceContext
 
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

Handheld

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

getBrowserPanel

public BrowserPanel getBrowserPanel()

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
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:
java.io.IOException

initiateDiscovery

public void initiateDiscovery(long timeout)
                       throws java.io.IOException
Throws:
java.io.IOException

establishConnection

public void establishConnection(PRDConnection info)
                         throws java.io.IOException
Throws:
java.io.IOException

closeConnection

public void closeConnection(PRDConnection info)
                     throws java.io.IOException
Throws:
java.io.IOException

removeServiceProxy

public void removeServiceProxy(ServiceProxy sp)

getControlCustomerLocalSID

public LocalSID getControlCustomerLocalSID()

commandReceived

public void commandReceived(CommandEvent e)
A command has been invoked in a user interface.

Specified by:
commandReceived in interface CommandEventListener