|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectuchicago.src.sim.analysis.ObjectData
public class 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(java.lang.String filename,
java.lang.String modelHeader,
java.lang.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(java.lang.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(java.lang.String filename,
java.lang.String modelHeader,
java.lang.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(java.lang.Object newData)
newData - the new data to addpublic void writeToFile()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||