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
ConstructorsConstructorDescriptionBatchParamMapFileWriter(BatchRunDataSource source, FileNameFormatter fnFormatter, String delimiter, FormatType formatType) -
Method Summary
Modifier and TypeMethodDescriptionfinal voidAppends the specified data to this sink.voidclose()Close this DataSink.voidflush()Flushes any data buffered by this DataSink.final voidOpen this DataSink.final voidNotified this DataSink that the current record has ended.final voidrowEnded()Notifies this DataSink that the last append was end of a "row."final voidNotifies this DataSink that the next append is that start of a "row." of data.voidNotifies 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:DataSinkOpen this DataSink. -
flush
public void flush()Description copied from interface:DataSinkFlushes 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:DataSinkNotifies this DataSink that the next append is that start of a "row." of data.- Specified by:
rowStartedin interfaceDataSink
-
append
Description copied from interface:DataSinkAppends 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:DataSinkNotifies this DataSink that the last append was end of a "row." -
recordEnded
public final void recordEnded()Description copied from interface:DataSinkNotified this DataSink that the current record has ended.- Specified by:
recordEndedin interfaceDataSink
-
close
public void close()Description copied from interface:DataSinkClose this DataSink.
-