/* * This method is called to wind down the simulation. */ public void finish() { super.finish(); System.out.println("Terminating the simulation"); /* * write CSV and XML output from simulation */ File csvDataFile = new File(resultFilePath + "/" + description + "/" + runFilePath + "/simOutputData.csv"); System.out.println("Output written to " + csvDataFile); // File xmlDataFile = new File(resultFilePath + "/" + description + "/Results/" + runFilePath + // "/simOutputData.xml"); PrintWriter dataOutput; try { dataOutput = new PrintWriter(csvDataFile); dataOutput.print(dataStore.compileTableToString()); dataOutput.close(); // dataStore.compileXMLOutput(xmlDataFile); } catch (Exception e) { e.printStackTrace(); } System.out.println("Run took " + (System.currentTimeMillis() - startTime) + " milliseconds"); }
/** Finish the simulation and clean up */ public void finish() { super.finish(); try { } catch (Exception e) { e.printStackTrace(); } }