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
ConstructorDescriptionConsoleDataSinkBuilder
(ConsoleDataSink.OutputStream target, String delimiter, FormatType formatType) -
Method Summary
Modifier and TypeMethodDescriptionvoid
Adds 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: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.
-