Package repast.simphony.data2.builder
Class FileDataSinkBuilder
- java.lang.Object
-
- repast.simphony.data2.builder.FileDataSinkBuilder
-
- All Implemented Interfaces:
SinkBuilder
public class FileDataSinkBuilder extends Object implements SinkBuilder
DataSinkBuilder that can build FileDataSinks.- Author:
- Nick Collier
-
-
Constructor Summary
Constructors Constructor Description FileDataSinkBuilder(String name, FileNameFormatter fnameFormatter, String delimiter, FormatType formatType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addSource(String sourceId)
Adds the specified source id to the list of those to write to the file.DataSink
create(Collection<? extends DataSource> sources)
Creates and returns a DataSink.
-
-
-
Constructor Detail
-
FileDataSinkBuilder
public FileDataSinkBuilder(String name, FileNameFormatter fnameFormatter, String delimiter, FormatType formatType)
-
-
Method Detail
-
addSource
public void addSource(String sourceId)
Adds the specified source id to the list of those to write to the file.- Parameters:
sourceId
-
-
create
public DataSink create(Collection<? extends DataSource> sources)
Description copied from interface:SinkBuilder
Creates and returns a DataSink.- Specified by:
create
in interfaceSinkBuilder
- Parameters:
sources
- the DataSources the that will feed the created DataSink- Returns:
- the created DataSink.
-
-