Table of Contents

Class InPlaceTransformationRule<TIn>

Namespace
NMF.Transformations
Assembly
NMF.Transformations.dll

Defines a simple transformation rule of a transformation that has one input argument and no output

public abstract class InPlaceTransformationRule<TIn> : InPlaceTransformationRuleBase<TIn> where TIn : class

Type Parameters

TIn

The type of the input argument

Inheritance
InPlaceTransformationRule<TIn>
Derived
Inherited Members
Extension Methods

Remarks

Simple means that the transformation rule does not require a custom computation class

Constructors

InPlaceTransformationRule()

Creates a new transformation rule

public InPlaceTransformationRule()

Properties

NeedDependenciesForOutputCreation

Gets a value indicating whether the output for all dependencies must have been created before this rule creates the output

public override bool NeedDependenciesForOutputCreation { get; }

Property Value

bool

Methods

CreateComputation(object[], IComputationContext)

Creates a new Computation instance for this transformation rule or the given input

public override Computation CreateComputation(object[] input, IComputationContext context)

Parameters

input object[]

The input arguments for this computation

context IComputationContext

The context for this computation

Returns

Computation

A computation object

Init(TIn, ITransformationContext)

Initializes the transformation. This is done before any other transformation rule hits Transform

public virtual void Init(TIn input, ITransformationContext context)

Parameters

input TIn

The input for this transformation rule

context ITransformationContext

The current transformation context

Transform(TIn, ITransformationContext)

Initializes the transformation output

public virtual void Transform(TIn input, ITransformationContext context)

Parameters

input TIn

The input of the transformation rule

context ITransformationContext

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