@Override public void addTrainingSetListener(TrainingSetListener tsl){
  m_trainingSetListeners.addElement(tsl);
  if (m_format != null) {
    TrainingSetEvent e=new TrainingSetEvent(this,m_format);
    tsl.acceptTrainingSet(e);
  }
}

@ Override public void addTrainingSetListener ( TrainingSetListener tsl ) { m_trainingSetListeners . addElement ( tsl ) ; if ( m_format != null ) { TrainingSetEvent e = new TrainingSetEvent ( this , m_format ) ; tsl . acceptTrainingSet ( e ) ; } }
add a training set listener
