Table of Contents

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 ITransformationContext

The transformation context

Properties

IsDelayed

Gets a value indicating whether the output creation for this computation is delayed

public bool IsDelayed { get; }

Property Value

bool

MinOutputDelayLevel

Gets the minimum output delay level for this cmputation

public byte MinOutputDelayLevel { get; }

Property Value

byte

MinTransformDelayLevel

Gets the minimum transformation delay level for this computation

public byte MinTransformDelayLevel { get; }

Property Value

byte

TransformationContext

The transformation context in which the computation is made

public ITransformationContext TransformationContext { get; }

Property Value

ITransformationContext

Methods

ConnectWith(Computation)

Connects the computation context with the given computation

public virtual void ConnectWith(Computation computation)

Parameters

computation Computation

The 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 byte

The 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 Computation

The other computation context

isRequired bool

True, if the other context is a strict requirement