Class TracingTransformationContext
Denotes a transformation context implementation that creates an image of the transformation using DGML
Inherited Members
Namespace: NMF.Transformations.Trace
Assembly: NMF.Transformations.Trace.dll
Syntax
public class TracingTransformationContext : TransformationContext, ITransformationEngineContext, ITransformationContext
Constructors
| Edit this page View SourceTracingTransformationContext(Transformation)
Creates a new instance
Declaration
public TracingTransformationContext(Transformation transformation)
Parameters
Type | Name | Description |
---|---|---|
Transformation | transformation |
Methods
| Edit this page View SourceCreateComputationContext(object[], GeneralTransformationRule)
Creates a computation context for the given input with the given transformation rule
Declaration
protected override sealed ComputationContext CreateComputationContext(object[] input, GeneralTransformationRule rule)
Parameters
Type | Name | Description |
---|---|---|
object[] | input | The inputs |
GeneralTransformationRule | rule | The transformation rule to process these inputs |
Returns
Type | Description |
---|---|
ComputationContext | A computation context |
Overrides
| Edit this page View SourceCreateId(object[], GeneralTransformationRule)
Creates the id for the input represented by the given inputs
Declaration
protected virtual string CreateId(object[] input, GeneralTransformationRule rule)
Parameters
Type | Name | Description |
---|---|---|
object[] | input | The inputs |
GeneralTransformationRule | rule | The transformation rule |
Returns
Type | Description |
---|---|
string | An identifier for the node |
CreateLabel(object[], GeneralTransformationRule)
Creates a label for the computation of the given inputs
Declaration
protected virtual string CreateLabel(object[] input, GeneralTransformationRule rule)
Parameters
Type | Name | Description |
---|---|---|
object[] | input | The inputs |
GeneralTransformationRule | rule | The transformation rule |
Returns
Type | Description |
---|---|
string | A label for the node representing the computation of the inputs |
WriteTraceGraph(TextWriter)
Writes the trace graph to the given text writer
Declaration
public void WriteTraceGraph(TextWriter writer)
Parameters
Type | Name | Description |
---|---|---|
TextWriter | writer | The text writer |