Class used to create auto-zipping result files. At each iteration, the file is added to an archive. More...
Public Member Functions | |
ResultFile (String outPath, String fileName, int iter) | |
Creates a result file within a specified folder, of a particular name, and at a set simulation iteration. More... | |
void | openFile (int iter) |
Creates a result file for the current iteration. More... | |
void | write (String text) |
Add text to an existing resultFile. More... | |
void | closeFile () |
Closes the resultFile and adds the closing mark-up to have a well-formed XML file. More... | |
Static Public Member Functions | |
static boolean | copyFile (String sourceName, String targetName) |
Static function invoked to copy a File of a given name to a specified target. More... | |
Class used to create auto-zipping result files. At each iteration, the file is added to an archive.
Class used to create auto-zipping result files. At each iteration, the file is added to an archive. The last iteration is still available with the syntax "resultFileName(last)"
utils.ResultFile.ResultFile | ( | String | outPath, |
String | fileName, | ||
int | iter | ||
) |
Creates a result file within a specified folder, of a particular name, and at a set simulation iteration.
Creates a result file within a specified folder, of a particular name, and at a set simulation iteration
outPath | directory where result files will be saved |
fileName | name of the resultFile |
iter | first iterate to start writing to (added bvm 26.1.2009) |
void utils.ResultFile.closeFile | ( | ) |
Closes the resultFile and adds the closing mark-up to have a well-formed XML file.
Closes the resultFile and adds the closing mark-up to have a well-formed XML file
|
static |
Static function invoked to copy a File of a given name to a specified target.
Static function invoked to copy a File of a given name to a specified target
sourceName | The name of the results file to copy |
targetName | The name that should be given to the copy |
void utils.ResultFile.openFile | ( | int | iter | ) |
Creates a result file for the current iteration.
Create a resultFile for the current iteration
Exception | Generated exception should read errors occur |
iter | The current simulation iteration (added by BVM Jan 2009) |
void utils.ResultFile.write | ( | String | text | ) |
Add text to an existing resultFile.
Add text to an existing resultFile
text | The text that should be appended to this results file |