|
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.ObjectData
Stores simulation data as objects. These objects can be written out to a file as Strings via the Objects toString() method. It is assumed that such data is already approriately formatted. These objects are from DataSources stored by an ObjectDataRecorder.
| Constructor Summary | |
ObjectData(String filename,
String modelHeader,
String header,
boolean isBatch)
Creates an ObjectData with the specified fileName, model header, and whether this is a batch run or not. |
|
| Method Summary | |
void |
addData(Object newData)
Adds newData to this ObjectData |
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 ObjectData(String filename,
String modelHeader,
String header,
boolean isBatch)
filename - the name of the file to write the data out to.modelHeader - the model header (parameters etc.)header - the header for this data.isBatch - whether this is a batch run or not.| Method Detail |
public void addData(Object newData)
newData - the new data to addpublic void writeToFile()
|
RePast v. 2.0 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||