/**
* {@inheritDoc}
*/
@Override
public void connect(PipeTasks pipeTasks) {
Source source;
// Get the input task. A sink only has one input, this corresponds to
// pipe index 0.
source = (Source) getInputTask(pipeTasks, 0, Source.class);
// Cast the input feed to the correct type.
// Connect the tasks.
source.setSink(task);
// Register the task as an output. A source only has one output, this
// corresponds to pipe index 0.
setOutputTask(pipeTasks, task, 0);
}