|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectuchicago.src.sim.analysis.AbstractDataSourceRecorder
uchicago.src.sim.analysis.LocalDataRecorder
public class LocalDataRecorder
The primary means of recording data during a simulation. The recorded data is drawn from objects in the simulation via the DataSources added with DataRecorder's addObjectDataSource method.
| Field Summary | |
|---|---|
protected IController |
control
|
protected java.util.Hashtable |
dynParams
|
protected java.lang.String |
fileName
|
protected boolean |
isBatch
|
protected boolean |
writeHeader
|
protected java.lang.String |
writeKey
|
| Fields inherited from class uchicago.src.sim.analysis.AbstractDataSourceRecorder |
|---|
data, dfHeader, model, sources |
| Constructor Summary | |
|---|---|
LocalDataRecorder(java.lang.String fileName,
SimModel model)
Constructs a DataRecorder using the specified file name and model. |
|
LocalDataRecorder(java.lang.String fileName,
SimModel model,
boolean isBatch)
Deprecated. |
|
LocalDataRecorder(java.lang.String fileName,
SimModel model,
boolean isBatch,
java.lang.String headerComment)
Deprecated. |
|
LocalDataRecorder(java.lang.String fileName,
SimModel model,
java.lang.String headerComment)
Constructs a DataRecorder using the specified file name, model, and headerComment. |
|
| Method Summary | |
|---|---|
void |
record()
Records the data for the current tick in tabular format. |
void |
write()
Writes the recorded data out to a file in tabular format. |
void |
writeEnd()
Writes any ending matter to the file. |
void |
writeToFile()
Writes the recorded data out to a file in tabular format. |
| Methods inherited from class uchicago.src.sim.analysis.AbstractDataSourceRecorder |
|---|
addNumericDataSource, addNumericDataSource, addObjectDataSource, createAverageDataSource, createAverageDataSource, createNumericDataSource, createNumericDataSource, createObjectDataSource, initData, setDelimeter, simEventPerformed |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.lang.String fileName
protected boolean isBatch
protected java.util.Hashtable dynParams
protected boolean writeHeader
protected IController control
protected java.lang.String writeKey
| Constructor Detail |
|---|
public LocalDataRecorder(java.lang.String fileName,
SimModel model)
fileName - the file to which the data is recordedmodel - the model from which the data is drawn. The relevant
model parameters (set/get parameters, rng seed) are written to the header
of the file.
public LocalDataRecorder(java.lang.String fileName,
SimModel model,
java.lang.String headerComment)
fileName - the file to which the data is recordedmodel - the model from which the data is drawn. The relevant
model parameters (set/get parameters, rng seed) are written to the header
of the fileheaderComment - a comment to prepend to the file header information
public LocalDataRecorder(java.lang.String fileName,
SimModel model,
boolean isBatch)
fileName - the file to which the data is recordedmodel - the model from which the data is drawn. The relevant
model parameters (set/get parameters, rng seed) are written to the header
of the fileisBatch - whether this model is run in batch mode
public LocalDataRecorder(java.lang.String fileName,
SimModel model,
boolean isBatch,
java.lang.String headerComment)
fileName - the file to which the data is recordedmodel - the model from which the data is drawn. The relevant
model parameters (set/get parameters, rng seed) are written to the header
of the fileisBatch - whether this model is run in batch modeheaderComment - a comment to prepend to the file header information| Method Detail |
|---|
public void record()
record in interface Recorderrecord in class AbstractDataSourceRecorderpublic void writeToFile()
writeToFile in interface RecorderwriteToFile in class AbstractDataSourceRecorderpublic void write()
write in interface Recorderwrite in class AbstractDataSourceRecorderpublic void writeEnd()
writeEnd in interface RecorderwriteEnd in class AbstractDataSourceRecorder
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||