|
RePast v. 2.0 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--uchicago.src.sim.analysis.SimData
Holds data in tabular format - a vector of vectors. Also provides methods for printing the data to a file.
DataRecorder| Constructor Summary | |
SimData(String fileName,
String modelHeader,
SimModel model,
boolean isBatch)
Constructs this object with the specified fileName, model, and mode. |
|
| Method Summary | |
void |
addData(Vector v)
Add a vector of data to this SimData. |
void |
addToHeader(List l)
Adds the specified list to the header associated with this data |
void |
addToHeader(String s)
Adds the specified String to the header associated with this data |
void |
setDelimiter(String delim)
Sets the column delimiter. |
void |
writeEnd()
Writes ending data (current time) to the file |
void |
writeToFile()
Writes the data (and a file header) out to a file. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public SimData(String fileName,
String modelHeader,
SimModel model,
boolean isBatch)
fileName - the fileName to write tomodel - the model from which the data is taken. Used to create
the file header.isBatch - whether the simulation is run in batch mode or not| Method Detail |
public void setDelimiter(String delim)
delim - the new delimiterpublic void addToHeader(String s)
public void addToHeader(List l)
public void addData(Vector v)
v - the data to add.public void writeEnd()
public void writeToFile()
|
RePast v. 2.0 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||