Class ComputationBase<TIn1, TIn2>
- Namespace
- NMF.Transformations
- Assembly
- NMF.Transformations.dll
Represents a computation that transforms two inputs
public abstract class ComputationBase<TIn1, TIn2> : Computation, IPersistor, ITraceEntry where TIn1 : class where TIn2 : class
Type Parameters
TIn1The type of the first input
TIn2The type of the second input
- Inheritance
-
ComputationBase<TIn1, TIn2>
- Implements
- Derived
- Inherited Members
- Extension Methods
Constructors
ComputationBase(GeneralTransformationRule<TIn1, TIn2>, IComputationContext, TIn1, TIn2)
Creates a new computation within the given transformation context for the given input
protected ComputationBase(GeneralTransformationRule<TIn1, TIn2> transformationRule, IComputationContext context, TIn1 input1, TIn2 input2)
Parameters
transformationRuleGeneralTransformationRule<TIn1, TIn2>The transformation rule that was used to transform the input
contextIComputationContextThe context of this transformation
input1TIn1The first input for this transformation
input2TIn2The second input for this transformation
Properties
Input1
Gets the first input argument for this computation
public TIn1 Input1 { get; }
Property Value
- TIn1
Input2
Gets the second input argument for this computation
public TIn2 Input2 { get; }
Property Value
- TIn2
TransformationRule
Gets the transformation rule, which has been used to compute this computation
public GeneralTransformationRule<TIn1, TIn2> TransformationRule { get; }
Property Value
- GeneralTransformationRule<TIn1, TIn2>
Methods
GetInput(int)
Gets the input argument for this computation with the given index
public override object GetInput(int index)
Parameters
indexintThe index of the input parameter
Returns
- object
The input parameter at the ith position