@Override public void acceptTestSet(TestSetEvent e){
  if (m_trainingSet != null) {
    try {
      if (m_state == IDLE) {
synchronized (this) {
          m_state=CLUSTERING;
        }
        m_testingSet=e.getTestSet();
        if (m_trainingSet.equalHeaders(m_testingSet)) {
          BatchClustererEvent ce=new BatchClustererEvent(this,m_Clusterer,new DataSetEvent(this,e.getTestSet()),e.getSetNumber(),e.getMaxSetNumber(),0);
          notifyBatchClustererListeners(ce);
        }
        m_state=IDLE;
      }
    }
 catch (    Exception ex) {
      stop();
      if (m_log != null) {
        m_log.statusMessage(statusMessagePrefix() + "ERROR (see log for details");
        m_log.logMessage("[Clusterer] " + statusMessagePrefix() + " problem during testing. "+ ex.getMessage());
      }
      ex.printStackTrace();
    }
  }
}

@ Override public void acceptTestSet ( TestSetEvent e ) { if ( m_trainingSet != null ) { try { if ( m_state == IDLE ) { synchronized ( this ) { m_state = CLUSTERING ; } m_testingSet = e . getTestSet ( ) ; if ( m_trainingSet . equalHeaders ( m_testingSet ) ) { BatchClustererEvent ce = new BatchClustererEvent ( this , m_Clusterer , new DataSetEvent ( this , e . getTestSet ( ) ) , e . getSetNumber ( ) , e . getMaxSetNumber ( ) , 0 ) ; notifyBatchClustererListeners ( ce ) ; } m_state = IDLE ; } } catch ( Exception ex ) { stop ( ) ; if ( m_log != null ) { m_log . statusMessage ( statusMessagePrefix ( ) + "ERROR (see log for details" ) ; m_log . logMessage ( "[Clusterer] " + statusMessagePrefix ( ) + " problem during testing. " + ex . getMessage ( ) ) ; } ex . printStackTrace ( ) ; } } }
accepts a test set for a batch trained clusterer
