Humboldt Alignment Editor 2.5.0

eu.esdihumboldt.hale.common.align.model.transformation.tree.context.impl
Class TargetContext

java.lang.Object
  extended by eu.esdihumboldt.hale.common.align.model.transformation.tree.context.impl.TargetContext
All Implemented Interfaces:
TransformationContext

public class TargetContext
extends Object
implements TransformationContext

Transformation context that duplicates subgraphs leading to certain target nodes.

Author:
Simon Templer

Nested Class Summary
static class TargetContext.DuplicationContext
          Context of a duplication process.
 
Constructor Summary
TargetContext(Set<TargetNode> contextTargets)
          Create a transformation context that duplicates subgraphs leading to the given target nodes.
 
Method Summary
static void augmentationTrackback(TransformationTree tree)
          Track back target nodes and duplicate any augmentation cells.
 void duplicateContext(SourceNode originalSource, SourceNode duplicate, Set<Cell> ignoreCells)
          Duplicate the context sub-tree of the given context source.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TargetContext

public TargetContext(Set<TargetNode> contextTargets)
Create a transformation context that duplicates subgraphs leading to the given target nodes.

Parameters:
contextTargets - the target nodes to use as subgraph end-points
Method Detail

duplicateContext

public void duplicateContext(SourceNode originalSource,
                             SourceNode duplicate,
                             Set<Cell> ignoreCells)
Description copied from interface: TransformationContext
Duplicate the context sub-tree of the given context source.

Specified by:
duplicateContext in interface TransformationContext
Parameters:
originalSource - the original context source
duplicate - the duplicate source node
ignoreCells - the cells to be ignored for the duplication
See Also:
TransformationContext.duplicateContext(SourceNode, SourceNode, Set)

augmentationTrackback

public static void augmentationTrackback(TransformationTree tree)
Track back target nodes and duplicate any augmentation cells.

Parameters:
tree - the tree to work on

Humboldt Alignment Editor 2.5.0

Build 2012-12-03_12-30-59
Revision 9d2dd4b0318cda9f1393b1ddd390f7f792d70a2d