Class InPlaceTransformationRule<TIn>
Defines a simple transformation rule of a transformation that has one input argument and no output
Inheritance
Inherited Members
Namespace: NMF.Transformations
Assembly: NMF.Transformations.dll
Syntax
public abstract class InPlaceTransformationRule<TIn> : InPlaceTransformationRuleBase<TIn> where TIn : class
Type Parameters
Name | Description |
---|---|
TIn | The type of the input argument |
Remarks
Simple means that the transformation rule does not require a custom computation class
Constructors
| Edit this page View SourceInPlaceTransformationRule()
Creates a new transformation rule
Declaration
public InPlaceTransformationRule()
Properties
| Edit this page View SourceNeedDependenciesForOutputCreation
Gets a value indicating whether the output for all dependencies must have been created before this rule creates the output
Declaration
public override bool NeedDependenciesForOutputCreation { get; }
Property Value
Type | Description |
---|---|
bool |
Overrides
Methods
| Edit this page View SourceCreateComputation(object[], IComputationContext)
Creates a new Computation instance for this transformation rule or the given input
Declaration
public override Computation CreateComputation(object[] input, IComputationContext context)
Parameters
Type | Name | Description |
---|---|---|
object[] | input | The input arguments for this computation |
IComputationContext | context | The context for this computation |
Returns
Type | Description |
---|---|
Computation | A computation object |
Overrides
| Edit this page View SourceInit(TIn, ITransformationContext)
Initializes the transformation. This is done before any other transformation rule hits Transform
Declaration
public virtual void Init(TIn input, ITransformationContext context)
Parameters
Type | Name | Description |
---|---|---|
TIn | input | The input for this transformation rule |
ITransformationContext | context | The current transformation context |
Transform(TIn, ITransformationContext)
Initializes the transformation output
Declaration
public virtual void Transform(TIn input, ITransformationContext context)
Parameters
Type | Name | Description |
---|---|---|
TIn | input | The input of the transformation rule |
ITransformationContext | context | The context (and trace!) object |
Remarks
At this point, all the transformation outputs are created (also the delayed ones), thus, the trace is fully reliable