Class ComputationContext
- Namespace
- NMF.Transformations.Core
- Assembly
- NMF.Transformations.Core.dll
The default implementation for a computation context
public class ComputationContext : IComputationContext
- Inheritance
-
ComputationContext
- Implements
- Derived
- Inherited Members
Constructors
ComputationContext(ITransformationContext)
Creates a new computation context for the given transformation context
public ComputationContext(ITransformationContext context)
Parameters
context
ITransformationContextThe transformation context
Properties
IsDelayed
Gets a value indicating whether the output creation for this computation is delayed
public bool IsDelayed { get; }
Property Value
MinOutputDelayLevel
Gets the minimum output delay level for this cmputation
public byte MinOutputDelayLevel { get; }
Property Value
MinTransformDelayLevel
Gets the minimum transformation delay level for this computation
public byte MinTransformDelayLevel { get; }
Property Value
TransformationContext
The transformation context in which the computation is made
public ITransformationContext TransformationContext { get; }
Property Value
Methods
ConnectWith(Computation)
Connects the computation context with the given computation
public virtual void ConnectWith(Computation computation)
Parameters
computation
ComputationThe computation thst is handled by this computation context
DelayOutputAtLeast(byte)
Configures the computation to create its output at minimum with the given delay level
public void DelayOutputAtLeast(byte delayLevel)
Parameters
delayLevel
byteThe minimum delay level for this computation
DelayTransformationAtLeast(byte)
Configures the computation to be transformed at least with the given delay level
public void DelayTransformationAtLeast(byte delayLevel)
Parameters
delayLevel
byte
InitializeOutput(object)
Initializes the output of this computation
public void InitializeOutput(object output)
Parameters
output
object
MarkRequire(Computation, bool)
Mark that this computation context requires another computation context to be done
public virtual void MarkRequire(Computation other, bool isRequired)
Parameters
other
ComputationThe other computation context
isRequired
boolTrue, if the other context is a strict requirement