/** * Add options from the classifier job only to the supplied list * * @param opts the list of options to add to * @param classifierJob the classifier job to grab options from */ protected void addClassifierJobOptionsOnly( List<String> opts, weka.distributed.hadoop.WekaClassifierHadoopJob classifierJob) { String[] classifierOpts = classifierJob.getJobOptionsOnly(); for (String s : classifierOpts) { opts.add(s); } }
/** * Adds a tab for editing an evaluation job * * @param tabTitle the title for the tab * @param evaluationJob the evaluation job to edit */ public void addTabForEvaluationJob(String tabTitle, HadoopJob evaluationJob) { JPanel jobHolder = new JPanel(); jobHolder.setLayout(new BorderLayout()); PropertySheetPanel evaluationJobEditor = new PropertySheetPanel(); evaluationJobEditor.setEnvironment(m_env); evaluationJobEditor.setTarget(evaluationJob); jobHolder.add(evaluationJobEditor, BorderLayout.NORTH); m_tempClassifierJob = new weka.distributed.hadoop.WekaClassifierHadoopJob(); try { m_tempClassifierJob.setOptions(Utils.splitOptions(m_optionsOrig)); } catch (Exception ex) { ex.printStackTrace(); } JPanel classifierJobP = makeClassifierJobPanel(m_tempClassifierJob, true); jobHolder.add(classifierJobP, BorderLayout.CENTER); JScrollPane scroller = new JScrollPane(jobHolder); m_configTabs.addTab(tabTitle, scroller); }