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
TIn1
The type of the first input
TIn2
The 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
transformationRule
GeneralTransformationRule<TIn1, TIn2>The transformation rule that was used to transform the input
context
IComputationContextThe context of this transformation
input1
TIn1The first input for this transformation
input2
TIn2The 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
index
intThe index of the input parameter
Returns
- object
The input parameter at the ith position