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
TIn
The 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
transformationRule
GeneralTransformationRule<TIn>The transformation rule that was used to transform the input
context
IComputationContextThe context of this transformation
input
TInThe 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
index
intThe index of the input parameter
Returns
- object
The input parameter at the ith position