org.demac.impl.util
Class ComManager

java.lang.Object
  extended by org.demac.impl.util.ComManager
All Implemented Interfaces:
TransportListener

public class ComManager
extends java.lang.Object
implements TransportListener


Constructor Summary
ComManager()
           
 
Method Summary
 void deviceDetected(Device arg0)
          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 arg0)
          This method is called when the org.demac.transport.TransportService removes a device from the list of known devices.
 void exceptionOccured(TransportException e)
          This method is called to inform the implementing object about ocurred org.demac.transport.TransportException[s].
 void messageArrived(MessageHandle pHandle)
          By this method the implementing object is informed of an arrived message.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ComManager

public ComManager()
Method Detail

messageArrived

public void messageArrived(MessageHandle pHandle)
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:
pHandle - the handle of the arrived message

exceptionOccured

public void exceptionOccured(TransportException e)
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:
e - the occured exception
See Also:
TransportListener.exceptionOccured(org.demac.transport.TransportException)

deviceDetected

public void deviceDetected(Device arg0)
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:
arg0 - the device which was detected
See Also:
TransportListener.deviceDetected(org.demac.transport.Device)

deviceRemoved

public void deviceRemoved(Device arg0)
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:
arg0 - the device which was removed
See Also:
TransportListener.deviceRemoved(org.demac.transport.Device)