ptolemy.actor.lib.io.comm
Class SerialComm.PortListener

java.lang.Object
  extended by ptolemy.actor.lib.io.comm.SerialComm.PortListener
All Implemented Interfaces:
gnu.io.SerialPortEventListener, java.util.EventListener
Enclosing class:
SerialComm

private static class SerialComm.PortListener
extends java.lang.Object
implements gnu.io.SerialPortEventListener

The SerialPort class allows only one listener


Constructor Summary
private SerialComm.PortListener()
           
 
Method Summary
 void serialEvent(gnu.io.SerialPortEvent e)
          React to an event from the serial port.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SerialComm.PortListener

private SerialComm.PortListener()
Method Detail

serialEvent

public void serialEvent(gnu.io.SerialPortEvent e)
React to an event from the serial port. This is the one and only method required to implement SerialPortEventListener (which this class implements). Notifies all threads that are blocked on this PortListener class.

Specified by:
serialEvent in interface gnu.io.SerialPortEventListener