Package repast.simphony.data2
Class BatchParamMapFileWriter
java.lang.Object
repast.simphony.data2.BatchParamMapFileWriter
- All Implemented Interfaces:
DataSink
DataSink that provides a mapping between a batch run number and the current
batch parameters.
- Author:
- Nick Collier
-
Constructor Summary
ConstructorDescriptionBatchParamMapFileWriter
(BatchRunDataSource source, FileNameFormatter fnFormatter, String delimiter, FormatType formatType) -
Method Summary
Modifier and TypeMethodDescriptionfinal void
Appends the specified data to this sink.void
close()
Close this DataSink.void
flush()
Flushes any data buffered by this DataSink.final void
Open this DataSink.final void
Notified this DataSink that the current record has ended.final void
rowEnded()
Notifies this DataSink that the last append was end of a "row."final void
Notifies this DataSink that the next append is that start of a "row." of data.void
Notifies this BatchParamMapFileWriter that another batch run has started, so we write the current parameter values to a file.
-
Constructor Details
-
BatchParamMapFileWriter
public BatchParamMapFileWriter(BatchRunDataSource source, FileNameFormatter fnFormatter, String delimiter, FormatType formatType)
-
-
Method Details
-
open
Description copied from interface:DataSink
Open this DataSink. -
flush
public void flush()Description copied from interface:DataSink
Flushes any data buffered by this DataSink. -
runStarted
public void runStarted()Notifies this BatchParamMapFileWriter that another batch run has started, so we write the current parameter values to a file. -
rowStarted
public final void rowStarted()Description copied from interface:DataSink
Notifies this DataSink that the next append is that start of a "row." of data.- Specified by:
rowStarted
in interfaceDataSink
-
append
Description copied from interface:DataSink
Appends the specified data to this sink. The key can be, for example, a column name and the value the current value for that column. -
rowEnded
public final void rowEnded()Description copied from interface:DataSink
Notifies this DataSink that the last append was end of a "row." -
recordEnded
public final void recordEnded()Description copied from interface:DataSink
Notified this DataSink that the current record has ended.- Specified by:
recordEnded
in interfaceDataSink
-
close
public void close()Description copied from interface:DataSink
Close this DataSink.
-