try { System.err.println("Initializing " + subTaskType + ")..."); m_experiment.initialize(); System.err.println("Iterating " + subTaskType + ")..."); m_experiment.runExperiment(); System.err.println("Postprocessing " + subTaskType + ")..."); m_experiment.postProcess(); } catch (Exception ex) { ex.printStackTrace(); String badResult =  "(sub)experiment " + subTaskType + ") failed : "+ex.toString(); m_result.setExecutionStatus(TaskStatusInfo.FAILED);   m_result.setStatusMessage(badResult); m_result.setTaskResult("Failed");  return; }   m_result.setExecutionStatus(TaskStatusInfo.FINISHED); m_result.setStatusMessage(goodResult+" "+subTaskType+")."); m_result.setTaskResult("No errors");  }
    public TaskStatusInfo execute() {      //      FastVector result = new FastVector();      TaskStatusInfo result = new TaskStatusInfo();      result.setStatusMessage("Running...");      String goodResult = "(sub)experiment completed successfully";      String subTaskType;      if (m_experiment.getRunLower() != m_experiment.getRunUpper()) {	subTaskType = "(datataset "	  + ((File)m_experiment.getDatasets().elementAt(0)).getName();      } else {	subTaskType = "(exp run # "+	  m_experiment.getRunLower();      }      try {		System.err.println("Initializing " + subTaskType + ")...");	m_experiment.initialize();	System.err.println("Iterating " + subTaskType + ")...");	m_experiment.runExperiment();	System.err.println("Postprocessing " + subTaskType + ")...");	m_experiment.postProcess();      } catch (Exception ex) {	ex.printStackTrace();	String badResult =  "(sub)experiment " + subTaskType 	  + ") failed : "+ex.toString();	result.setExecutionStatus(TaskStatusInfo.FAILED);	//	result.addElement(new Integer(RemoteExperiment.FAILED));	//	result.addElement(badResult);	result.setStatusMessage(badResult);	result.setTaskResult("Failed");	return result;      }                  //      result.addElement(new Integer(RemoteExperiment.FINISHED));      //      result.addElement(goodResult);      result.setExecutionStatus(TaskStatusInfo.FINISHED);      result.setStatusMessage(goodResult+" "+subTaskType+").");      result.setTaskResult("No errors");      return result;    }