Java 类weka.core.converters.DatabaseConverter 实例源码

项目:repo.kmeanspp.silhouette_score    文件:LoaderCustomizer.java   
/**
 * Set the loader to be customized
 * 
 * @param object a weka.gui.beans.Loader
 */
@Override
public void setObject(Object object) {
  m_dsLoader = (weka.gui.beans.Loader) object;

  try {
    m_backup = (weka.core.converters.Loader) GenericObjectEditor
      .makeCopy(m_dsLoader.getLoader());
  } catch (Exception ex) {
    // ignore
  }

  m_LoaderEditor.setTarget(m_dsLoader.getLoader());
  // m_fileEditor.setValue(m_dsLoader.getDataSetFile());
  m_LoaderEditor.setEnvironment(m_env);
  if (m_dsLoader.getLoader() instanceof FileSourcedConverter) {
    setUpFile();
  } else {
    if (m_dsLoader.getLoader() instanceof DatabaseConverter) {
      setUpDatabase();
    } else {
      setUpOther();
    }
  }
}
项目:autoweka    文件:LoaderCustomizer.java   
/**
 * Set the loader to be customized
 *
 * @param object a weka.gui.beans.Loader
 */
public void setObject(Object object) {
  m_dsLoader = (weka.gui.beans.Loader)object;

  try {
    m_backup = 
      (weka.core.converters.Loader)GenericObjectEditor.makeCopy(m_dsLoader.getLoader());
  } catch (Exception ex) {
    // ignore
  }

  m_LoaderEditor.setTarget(m_dsLoader.getLoader());
  //    m_fileEditor.setValue(m_dsLoader.getDataSetFile());
  m_LoaderEditor.setEnvironment(m_env);
  if (m_dsLoader.getLoader() instanceof FileSourcedConverter) {
    setUpFile();
  } else{ 
      if(m_dsLoader.getLoader() instanceof DatabaseConverter) {
          setUpDatabase();
      }
      else
    setUpOther();
  }    
}
项目:umple    文件:LoaderCustomizer.java   
/**
 * Set the loader to be customized
 * 
 * @param object a weka.gui.beans.Loader
 */
@Override
public void setObject(Object object) {
  m_dsLoader = (weka.gui.beans.Loader) object;

  try {
    m_backup = (weka.core.converters.Loader) GenericObjectEditor
      .makeCopy(m_dsLoader.getLoader());
  } catch (Exception ex) {
    // ignore
  }

  m_LoaderEditor.setTarget(m_dsLoader.getLoader());
  // m_fileEditor.setValue(m_dsLoader.getDataSetFile());
  m_LoaderEditor.setEnvironment(m_env);
  if (m_dsLoader.getLoader() instanceof FileSourcedConverter) {
    setUpFile();
  } else {
    if (m_dsLoader.getLoader() instanceof DatabaseConverter) {
      setUpDatabase();
    } else {
      setUpOther();
    }
  }
}
项目:repo.kmeanspp.silhouette_score    文件:SaverCustomizer.java   
/**
 * Set the saver to be customized
 *
 * @param object a weka.gui.beans.Saver
 */
public void setObject(Object object) {
  m_dsSaver = (weka.gui.beans.Saver)object;
  m_SaverEditor.setTarget(m_dsSaver.getSaverTemplate());
  if(m_dsSaver.getSaverTemplate() instanceof DatabaseConverter){
    setUpDatabase();
  }
  else{
    if (m_dsSaver.getSaverTemplate() instanceof FileSourcedConverter) {
      setUpFile();
    } else {
      setUpOther();
    }
  }
}
项目:repo.kmeanspp.silhouette_score    文件:Saver.java   
/**
 * Set the loader to use
 * 
 * @param saver a Saver
 */
public void setSaverTemplate(weka.core.converters.Saver saver) {
  boolean loadImages = true;
  if (saver.getClass().getName()
    .compareTo(m_SaverTemplate.getClass().getName()) == 0) {
    loadImages = false;
  }
  m_SaverTemplate = saver;
  String saverName = saver.getClass().toString();
  saverName = saverName.substring(saverName.lastIndexOf('.') + 1,
    saverName.length());
  if (loadImages) {

    if (!m_visual.loadIcons(BeanVisual.ICON_PATH + saverName + ".gif",
      BeanVisual.ICON_PATH + saverName + "_animated.gif")) {
      useDefaultVisual();
    }
  }
  m_visual.setText(saverName);

  // get global info
  m_globalInfo = KnowledgeFlowApp.getGlobalInfo(m_SaverTemplate);
  if (m_SaverTemplate instanceof DatabaseConverter) {
    m_isDBSaver = true;
  } else {
    m_isDBSaver = false;
  }
}
项目:autoweka    文件:SaverCustomizer.java   
/**
 * Set the saver to be customized
 *
 * @param object a weka.gui.beans.Saver
 */
public void setObject(Object object) {
  m_dsSaver = (weka.gui.beans.Saver)object;
  m_SaverEditor.setTarget(m_dsSaver.getSaverTemplate());
  if(m_dsSaver.getSaverTemplate() instanceof DatabaseConverter){
    setUpDatabase();
  }
  else{
    if (m_dsSaver.getSaverTemplate() instanceof FileSourcedConverter) {
      setUpFile();
    } else {
      setUpOther();
    }
  }
}
项目:autoweka    文件:Saver.java   
/** Set the loader to use
  * @param saver a Saver
  */
 public void setSaverTemplate(weka.core.converters.Saver saver) {
   boolean loadImages = true;
   if (saver.getClass().getName().
compareTo(m_SaverTemplate.getClass().getName()) == 0) {
     loadImages = false;
   }
   m_SaverTemplate = saver;
   String saverName = saver.getClass().toString();
   saverName = saverName.substring(saverName.
                  lastIndexOf('.')+1, 
                  saverName.length());
   if (loadImages) {

     if (!m_visual.loadIcons(BeanVisual.ICON_PATH+saverName+".gif",
            BeanVisual.ICON_PATH+saverName+"_animated.gif")) {
useDefaultVisual();
     }
   }
   m_visual.setText(saverName);


   // get global info
   m_globalInfo = KnowledgeFlowApp.getGlobalInfo(m_SaverTemplate);
   if(m_SaverTemplate instanceof DatabaseConverter)
       m_isDBSaver = true;
   else
       m_isDBSaver = false;
 }
项目:umple    文件:SaverCustomizer.java   
/**
 * Set the saver to be customized
 *
 * @param object a weka.gui.beans.Saver
 */
public void setObject(Object object) {
  m_dsSaver = (weka.gui.beans.Saver)object;
  m_SaverEditor.setTarget(m_dsSaver.getSaverTemplate());
  if(m_dsSaver.getSaverTemplate() instanceof DatabaseConverter){
    setUpDatabase();
  }
  else{
    if (m_dsSaver.getSaverTemplate() instanceof FileSourcedConverter) {
      setUpFile();
    } else {
      setUpOther();
    }
  }
}
项目:umple    文件:Saver.java   
/**
 * Set the loader to use
 * 
 * @param saver a Saver
 */
public void setSaverTemplate(weka.core.converters.Saver saver) {
  boolean loadImages = true;
  if (saver.getClass().getName()
    .compareTo(m_SaverTemplate.getClass().getName()) == 0) {
    loadImages = false;
  }
  m_SaverTemplate = saver;
  String saverName = saver.getClass().toString();
  saverName = saverName.substring(saverName.lastIndexOf('.') + 1,
    saverName.length());
  if (loadImages) {

    if (!m_visual.loadIcons(BeanVisual.ICON_PATH + saverName + ".gif",
      BeanVisual.ICON_PATH + saverName + "_animated.gif")) {
      useDefaultVisual();
    }
  }
  m_visual.setText(saverName);

  // get global info
  m_globalInfo = KnowledgeFlowApp.getGlobalInfo(m_SaverTemplate);
  if (m_SaverTemplate instanceof DatabaseConverter) {
    m_isDBSaver = true;
  } else {
    m_isDBSaver = false;
  }
}
项目:jbossBA    文件:SaverCustomizer.java   
/**
 * Set the saver to be customized
 *
 * @param object a weka.gui.beans.Saver
 */
public void setObject(Object object) {
  m_dsSaver = (weka.gui.beans.Saver)object;
  m_SaverEditor.setTarget(m_dsSaver.getSaverTemplate());
  if(m_dsSaver.getSaverTemplate() instanceof DatabaseConverter){
          setUpDatabase();
  }
  else{
      if (m_dsSaver.getSaverTemplate() instanceof FileSourcedConverter) {
          setUpFile();
      } else {
          setUpOther();
      }
  }
}
项目:jbossBA    文件:Saver.java   
/**
 * Set the loader to use
 * 
 * @param saver a Saver
 */
public void setSaverTemplate(weka.core.converters.Saver saver) {
  boolean loadImages = true;
  if (saver.getClass().getName()
      .compareTo(m_SaverTemplate.getClass().getName()) == 0) {
    loadImages = false;
  }
  m_SaverTemplate = saver;
  String saverName = saver.getClass().toString();
  saverName = saverName.substring(saverName.lastIndexOf('.') + 1,
      saverName.length());
  if (loadImages) {

    if (!m_visual.loadIcons(BeanVisual.ICON_PATH + saverName + ".gif",
        BeanVisual.ICON_PATH + saverName + "_animated.gif")) {
      useDefaultVisual();
    }
  }
  m_visual.setText(saverName);

  // get global info
  m_globalInfo = KnowledgeFlowApp.getGlobalInfo(m_SaverTemplate);
  if (m_SaverTemplate instanceof DatabaseConverter)
    m_isDBSaver = true;
  else
    m_isDBSaver = false;
}
项目:jbossBA    文件:LoaderCustomizer.java   
/**
 * Set the loader to be customized
 *
 * @param object a weka.gui.beans.Loader
 */
public void setObject(Object object) {
  m_dsLoader = (weka.gui.beans.Loader)object;
  m_LoaderEditor.setTarget(m_dsLoader.getLoader());
  //    m_fileEditor.setValue(m_dsLoader.getDataSetFile());
  if (m_dsLoader.getLoader() instanceof FileSourcedConverter) {
    setUpFile();
  } else{ 
      if(m_dsLoader.getLoader() instanceof DatabaseConverter) {
          setUpDatabase();
      }
      else
    setUpOther();
  }
}