org.demac.j2me.DEMAC
Class DemacDesktop

java.lang.Object
  extended by org.demac.j2me.DEMAC.DemacDesktop
All Implemented Interfaces:
TransportListener

public class DemacDesktop
extends java.lang.Object
implements TransportListener


Constructor Summary
DemacDesktop()
           
 
Method Summary
 UUID createUUID()
           
 void deviceDetected(Device device)
          This method is called when the org.demac.transport.TransportService detects a new device and adds it to it's list of new devices.
 void deviceRemoved(Device device)
          This method is called when the org.demac.transport.TransportService removes a device from the list of known devices.
 void exceptionOccured(TransportException exception)
          This method is called to inform the implementing object about ocurred org.demac.transport.TransportException[s].
static void main(java.lang.String[] args)
           
 void messageArrived(MessageHandle handle)
          By this method the implementing object is informed of an arrived message.
 void setLocalDevice(java.lang.String handle)
           
 void stopProcess(java.lang.String id)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DemacDesktop

public DemacDesktop()
Method Detail

main

public static void main(java.lang.String[] args)

deviceDetected

public void deviceDetected(Device device)
Description copied from interface: TransportListener
This method is called when the org.demac.transport.TransportService detects a new device and adds it to it's list of new devices.

Specified by:
deviceDetected in interface TransportListener
Parameters:
device - the device which was detected

deviceRemoved

public void deviceRemoved(Device device)
Description copied from interface: TransportListener
This method is called when the org.demac.transport.TransportService removes a device from the list of known devices.

Specified by:
deviceRemoved in interface TransportListener
Parameters:
device - the device which was removed

exceptionOccured

public void exceptionOccured(TransportException exception)
Description copied from interface: TransportListener
This method is called to inform the implementing object about ocurred org.demac.transport.TransportException[s].

Specified by:
exceptionOccured in interface TransportListener
Parameters:
exception - the occured exception

messageArrived

public void messageArrived(MessageHandle handle)
Description copied from interface: TransportListener
By this method the implementing object is informed of an arrived message. The message is referenced by its org.demac.transport.MessageHandle.

Specified by:
messageArrived in interface TransportListener
Parameters:
handle - the handle of the arrived message

createUUID

public UUID createUUID()

setLocalDevice

public void setLocalDevice(java.lang.String handle)

stopProcess

public void stopProcess(java.lang.String id)
                 throws java.lang.Exception
Throws:
java.lang.Exception