Class ComputationBase<TIn>
- Namespace
- NMF.Transformations
- Assembly
- NMF.Transformations.dll
Represents a computation that transforms a single input
public abstract class ComputationBase<TIn> : Computation, IPersistor, ITraceEntry where TIn : class
Type Parameters
TInThe type of the input
- Inheritance
-
ComputationBase<TIn>
- Implements
- Derived
- Inherited Members
- Extension Methods
Constructors
ComputationBase(GeneralTransformationRule<TIn>, IComputationContext, TIn)
Creates a new computation within the given transformation context for the given input
protected ComputationBase(GeneralTransformationRule<TIn> transformationRule, IComputationContext context, TIn input)
Parameters
transformationRuleGeneralTransformationRule<TIn>The transformation rule that was used to transform the input
contextIComputationContextThe context of this transformation
inputTInThe input for this transformation
Properties
Input
Gets the input argument for this computation
public TIn Input { get; }
Property Value
- TIn
TransformationRule
Gets the transformation rule, which has been used to compute this computation
public GeneralTransformationRule<TIn> TransformationRule { get; }
Property Value
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