de.cau.cs.kieler.kiml.service.formats
Interface IGraphTransformer<S,T>

Type Parameters:
S - source graph type
T - target graph type
All Known Implementing Classes:
DotExporter, DotImporter

public interface IGraphTransformer<S,T>

Interface for graph transformations.

Rating red

Method Summary
 void transferLayout(TransformationData<S,T> data)
          Apply the layout of the target graphs to the original source graph instance.
 void transform(TransformationData<S,T> data)
          Transform the source graph structure into one ore more instances of the target graph type.
 

Method Detail

transform

void transform(TransformationData<S,T> data)
Transform the source graph structure into one ore more instances of the target graph type.

Parameters:
data - the transformation data instance that holds the source graph and is enriched with the new target graphs

transferLayout

void transferLayout(TransformationData<S,T> data)
Apply the layout of the target graphs to the original source graph instance. This may only be used on target graphs that were created by the same transformation class.

Parameters:
data - the transformation data instance