uchicago.src.sim.analysis
Class DistributedDataRecorder
java.lang.Object
uchicago.src.sim.analysis.AbstractDataSourceRecorder
uchicago.src.sim.analysis.DistributedDataRecorder
- All Implemented Interfaces:
- DataSourceRecorder, Recorder, SimEventListener
public class DistributedDataRecorder
- extends AbstractDataSourceRecorder
Created by IntelliJ IDEA.
User: thowe
Date: Jan 2, 2003
Time: 1:07:53 PM
To change this template use Options | File Templates.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
writer
protected DataWriter writer
name
protected java.lang.String name
fileName
protected java.lang.String fileName
control
protected IController control
dynParams
protected java.util.Hashtable dynParams
writeHeader
protected boolean writeHeader
writeKey
protected java.lang.String writeKey
WRITE_END_KEY
public static final java.lang.String WRITE_END_KEY
- See Also:
- Constant Field Values
DistributedDataRecorder
public DistributedDataRecorder(java.lang.String fileName,
DataWriter writer,
SimModel model,
java.lang.String headerComment)
DistributedDataRecorder
public DistributedDataRecorder(java.lang.String fileName,
DataWriter writer,
SimModel model)
record
public void record()
- Description copied from interface:
Recorder
- Records the data for the current tick in tabular format. Each tick is
a row, and each column is the name of the data source.
- Specified by:
record in interface Recorder- Specified by:
record in class AbstractDataSourceRecorder
writeToFile
public void writeToFile()
- Specified by:
writeToFile in interface Recorder- Specified by:
writeToFile in class AbstractDataSourceRecorder
write
public void write()
- Description copied from interface:
Recorder
- Writes the recorded data out to a file in tabular format. This also
does a flush on the data itself (i.e. the data is no longer stored by
repast and exists only in the file). Identical to writeToFile().
- Specified by:
write in interface Recorder- Specified by:
write in class AbstractDataSourceRecorder
simEventPerformed
public void simEventPerformed(SimEvent event)
- Specified by:
simEventPerformed in interface Recorder- Specified by:
simEventPerformed in interface SimEventListener- Overrides:
simEventPerformed in class AbstractDataSourceRecorder
writeEnd
public void writeEnd()
- Description copied from interface:
Recorder
- Writes any ending matter to the file. Used internally during a batch run
to write the ending time of the entire batch. A model would not
typically call this method.
- Specified by:
writeEnd in interface Recorder- Specified by:
writeEnd in class AbstractDataSourceRecorder