Package repast.simphony.data2.builder
Class ConsoleDataSinkBuilder
java.lang.Object
repast.simphony.data2.builder.ConsoleDataSinkBuilder
- All Implemented Interfaces:
SinkBuilder
DataSinkBuilder that can build FileDataSinks.
- Author:
- Nick Collier
-
Constructor Summary
ConstructorsConstructorDescriptionConsoleDataSinkBuilder(ConsoleDataSink.OutputStream target, String delimiter, FormatType formatType) -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds the specified source id to the list of those to write to the console.create(Collection<? extends DataSource> sources) Creates and returns a DataSink.
-
Constructor Details
-
ConsoleDataSinkBuilder
public ConsoleDataSinkBuilder(ConsoleDataSink.OutputStream target, String delimiter, FormatType formatType)
-
-
Method Details
-
addSource
Adds the specified source id to the list of those to write to the console.- Parameters:
sourceId-
-
create
Description copied from interface:SinkBuilderCreates and returns a DataSink.- Specified by:
createin interfaceSinkBuilder- Parameters:
sources- the DataSources the that will feed the created DataSink- Returns:
- the created DataSink.
-