public void addListener(ITLAPMOutputSourceListener listener){
  if (!listeners.contains(listener)) {
    listeners.add(listener);
    for (Iterator it=outputData.iterator(); it.hasNext(); ) {
      listener.newData((TLAPMMessage)it.next());
    }
  }
}

public void addListener ( ITLAPMOutputSourceListener listener ) { if ( ! listeners . contains ( listener ) ) { listeners . add ( listener ) ; for ( Iterator it = outputData . iterator ( ) ; it . hasNext ( ) ; ) { listener . newData ( ( TLAPMMessage ) it . next ( ) ) ; } } }
adds the listener to the list of listeners to be notified of new data and informs the listener of all existing data . does nothing if the listener is already connected to this source .
