org.gcube.datatransformation.datatransformationlibrary.model.graph
Interface TransformationsGraph

All Known Implementing Classes:
RemoteTransformationsGraph, TransformationsGraphImpl

public interface TransformationsGraph

Author:
Dimitris Katris, NKUA

Transformations Graph is responsible to find Transformation Units which can be used in order to perform a transformationUnit for an object, from its content type (source) to a target content type.


Method Summary
 void destroy()
          Destroys the graph.
 ArrayList<TransformationUnit> findAnyTransformationUnits(ContentType sourceContentType, ContentType targetContentType, boolean createAndPublishCompositeTP)
          Finds Transformation Units from the sourceContentType to the targetContentType.
 ArrayList<TransformationUnit> findApplicableTransformationUnits(ContentType sourceContentType, ContentType targetContentType, boolean createAndPublishCompositeTP)
          Finds applicable Transformation Units from the sourceContentType to the targetContentType.
 ArrayList<ContentType> findAvailableTargetContentTypes(ContentType sourceContentType)
          Finds the available target ContentTypes from the sourceContentType.
 

Method Detail

findApplicableTransformationUnits

ArrayList<TransformationUnit> findApplicableTransformationUnits(ContentType sourceContentType,
                                                                ContentType targetContentType,
                                                                boolean createAndPublishCompositeTP)
Finds applicable Transformation Units from the sourceContentType to the targetContentType.

Parameters:
sourceContentType - The ContentType of the source DataElement.
targetContentType - The ContentType of the target DataElement.
createAndPublishCompositeTP - If true then a new composite TransformationProgram is created and published if no available TransformationProgram exists.
Returns:
The available TransformationUnits.

findAnyTransformationUnits

ArrayList<TransformationUnit> findAnyTransformationUnits(ContentType sourceContentType,
                                                         ContentType targetContentType,
                                                         boolean createAndPublishCompositeTP)
Finds Transformation Units from the sourceContentType to the targetContentType. Returns also generic Transformation Units.

Parameters:
sourceContentType - The ContentType of the source DataElement.
targetContentType - The ContentType of the target DataElement.
createAndPublishCompositeTP - If true then a new composite TransformationProgram is created and published if no available TransformationProgram exists.
Returns:
The available TransformationUnits.

findAvailableTargetContentTypes

ArrayList<ContentType> findAvailableTargetContentTypes(ContentType sourceContentType)
Finds the available target ContentTypes from the sourceContentType.

Parameters:
sourceContentType - The ContentType of the source DataElement.
Returns:
The available target ContentTypes from the sourceContentType.

destroy

void destroy()
Destroys the graph.



Copyright © 2013. All Rights Reserved.