Class InPlaceTransformationRule<TIn1, TIn2>
- Namespace
- NMF.Transformations
- Assembly
- NMF.Transformations.dll
Defines a simple transformation rule of a transformation that has two inputs argument and no output
public abstract class InPlaceTransformationRule<TIn1, TIn2> : InPlaceTransformationRuleBase<TIn1, TIn2> where TIn1 : class where TIn2 : class
Type Parameters
TIn1
The type of the first input argument
TIn2
The type of the second input argument
- Inheritance
-
GeneralTransformationRule<TIn1, TIn2>InPlaceTransformationRuleBase<TIn1, TIn2>InPlaceTransformationRule<TIn1, TIn2>
- 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
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
IComputationContextThe context for this computation
Returns
- Computation
A computation object
Init(TIn1, TIn2, ITransformationContext)
Initializes the transformation. This is done before any other transformation rule hits Transform
public virtual void Init(TIn1 input1, TIn2 input2, ITransformationContext context)
Parameters
input1
TIn1The first input for this transformation rule
input2
TIn2The second input for this transformation rule
context
ITransformationContextThe current transformation context
Transform(TIn1, TIn2, ITransformationContext)
Initializes the transformation output
public virtual void Transform(TIn1 input1, TIn2 input2, ITransformationContext context)
Parameters
input1
TIn1The first input of the transformation rule
input2
TIn2The second input of the transformation rule
context
ITransformationContextThe context (and trace!) object
Remarks
At this point, all the transformation outputs are created (also the delayed ones), thus, the trace is fully reliable