Package weka.gui.beans

Examples of weka.gui.beans.Saver$SaveBatchThread


    StringBuffer buffer = new StringBuffer();
    buffer.append("------------------------\n");
    buffer.append(" SAVERS INFO       \n");
    buffer.append("------------------------\n");
    for(int i = 0; i < savers.size(); i++) {
      Saver saver = (Saver)savers.get(i);
      buffer.append(getSaverDesc(saver));
      buffer.append("------------------------\n");
    }
    return buffer.toString();
  }
View Full Code Here


        loader.startLoading();     
      }   
     
      if(forceBlocking) {
        for(int i = 0; i < savers.size(); i++) {
          Saver saver = (Saver)savers.get(i);
          logger.debug("Start blocking on: " + savers );     
          saver.waitUntilFinish();     
       
       
        if(savers.size() == 0) {
          for(int i = 0; i < associators.size(); i++) {
            Associator associator = (Associator)associators.get(i);
View Full Code Here

   *  Setup Saver filling missing parameter values   *
   */
  public void setupSavers() {
    logger.debug("IN");
    for(int i = 0; i < savers.size(); i++) {
      Saver saver = (Saver)savers.get(i);
     
      String className = saver.getSaver().getClass().getName();
      if(className.equalsIgnoreCase(DatabaseSaver.class.getName())) {
        DatabaseSaver databaseSaver = (DatabaseSaver)saver.getSaver();
       
        databaseSaver.setDbWriteMode(env.getWriteMode());
        databaseSaver.setKeyColumnNames(env.getKeyColumnNames());
       
        if( env.isVersioningEnabled() ) {
          databaseSaver.setVersioning(true);
          databaseSaver.setVersionColumnName( env.getVersionColumnName());
          databaseSaver.setVersion( env.getVersion());
        }
       
        if( env.getOutConnection() != null ) {
          databaseSaver.setDestination(env.getOutConnection());
        }
      } else if(className.equalsIgnoreCase(ArffSaver.class.getName())) {
        ArffSaver arffSaver = (ArffSaver)saver.getSaver();       
        // setup operation goes here     
      }
    }
    logger.debug("OUT");
  }
View Full Code Here

TOP

Related Classes of weka.gui.beans.Saver$SaveBatchThread

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.