|
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.DataFileWriter
Writes objects to a file via their toString() method. DataFileWriter is used by recording objects to write data to a file.
| Constructor Summary | |
DataFileWriter(String fileName,
DataFileHeader dfHeader)
Constructs a DataFileWriter to write to the specified file using the specified DataFileHeader. |
|
| Method Summary | |
void |
setBlockHeader(String blockHeader)
Sets a block header. |
void |
writeToFile(Object obj)
Writes the specifed object 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 DataFileWriter(String fileName,
DataFileHeader dfHeader)
dfHeader - the DataFileHeader for this file.| Method Detail |
public void setBlockHeader(String blockHeader)
setBlockHeader in interface BlockFileWriterblockHeader - the header for a block of datapublic void writeToFile(Object obj)
writeToFile in interface BlockFileWriterobj - the object whose String representation will be written to
a file.
|
RePast v. 2.0 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||