org.gcube.datatransformation.datatransformationlibrary.programs
Interface Program

All Known Implementing Classes:
Elm2ElmProgram, File2FileProgram, P2PProgram, Stream2StreamProgram

public interface Program

Author:
Dimitris Katris, NKUA

Each Program is an independent, self-describing entity that encapsulates the logic of the transformationUnit process it performs. The gDTS loads these required programs dynamically as the execution proceeds and supplies them with the input data that must be transformed.


Method Summary
 void transform(List<DataSource> sources, List<Parameter> programParameters, ContentType targetContentType, DataSink sink)
          The method invoked by ProgramExecutor in order for the Program to transform the sources to the targetContentType.
 

Method Detail

transform

void transform(List<DataSource> sources,
               List<Parameter> programParameters,
               ContentType targetContentType,
               DataSink sink)
               throws Exception
The method invoked by ProgramExecutor in order for the Program to transform the sources to the targetContentType.

Parameters:
sources - The DataSources from which the Program will get the DataElements.
programParameters - The parameters of the Program which are primarily set by the TransformationUnit.
targetContentType - The ContentType in which the source data will be transformed.
sink - The DataSink in which the Program will append the transformed DataElements.
Throws:
Exception - If the program is not capable to transform DataElements.


Copyright © 2013. All Rights Reserved.