plp.rs232
Class AbstractCommunicationDevice

java.lang.Object
plp.rs232.AbstractCommunicationDevice
- All Implemented Interfaces:
- CommunicationDevice
- Direct Known Subclasses:
- CommunicationDeviceProxy, RS232, TestCommunicationDevice
- abstract class AbstractCommunicationDevice
- extends java.lang.Object
- implements CommunicationDevice
This class implements the listener part of the CommunicationDevice
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
listeners
private java.util.Vector listeners
AbstractCommunicationDevice
AbstractCommunicationDevice()
getListeners
private java.util.Vector getListeners()
- accessor method for DataListeners
getNumberOfListeners
protected int getNumberOfListeners()
- accessor method for DataListeners
getListenerAt
protected DataListener getListenerAt(int index)
- accessor method for DataListeners
addDataListener
public void addDataListener(DataListener listener)
- accessor method for DataListeners, implementation of
CommunicationDevice
- Specified by:
addDataListener in interface CommunicationDevice
removeDataListener
public void removeDataListener(DataListener listener)
- accessor method for DataListeners, implementation of
CommunicationDevice
- Specified by:
removeDataListener in interface CommunicationDevice
fireReceiveDataEvent
protected void fireReceiveDataEvent(byte[] data)
- fires data event