C# Class NMF.Transformations.Core.ComputationContext

The default implementation for a computation context
Inheritance: IComputationContext
显示文件 Open project: NMFCode/NMF Class Usage Examples

Private Properties

Property Type Description
DelayOutput void

Public Methods

Method Description
ComputationContext ( ITransformationContext context ) : System

Creates a new computation context for the given transformation context

ConnectWith ( NMF.Transformations.Core.Computation computation ) : void

Connects the computation context with the given computation

DelayOutputAtLeast ( byte delayLevel ) : void

Configures the computation to create its output at minimum with the given delay level

DelayTransformationAtLeast ( byte delayLevel ) : void

Configures the computation to be transformed at least with the given delay level

InitializeOutput ( object output ) : void
MarkRequire ( NMF.Transformations.Core.Computation other, bool isRequired ) : void

Mark that this computation context requires another computation context to be done

Private Methods

Method Description
DelayOutput ( NMF.Transformations.Core.OutputDelay delay ) : void

Delays the ouput of this computation with the given output delay

Method Details

ComputationContext() public method

Creates a new computation context for the given transformation context
public ComputationContext ( ITransformationContext context ) : System
context ITransformationContext The transformation context
return System

ConnectWith() public method

Connects the computation context with the given computation
public ConnectWith ( NMF.Transformations.Core.Computation computation ) : void
computation NMF.Transformations.Core.Computation The computation thst is handled by this computation context
return void

DelayOutputAtLeast() public method

Configures the computation to create its output at minimum with the given delay level
public DelayOutputAtLeast ( byte delayLevel ) : void
delayLevel byte The minimum delay level for this computation
return void

DelayTransformationAtLeast() public method

Configures the computation to be transformed at least with the given delay level
public DelayTransformationAtLeast ( byte delayLevel ) : void
delayLevel byte
return void

InitializeOutput() public method

public InitializeOutput ( object output ) : void
output object
return void

MarkRequire() public method

Mark that this computation context requires another computation context to be done
public MarkRequire ( NMF.Transformations.Core.Computation other, bool isRequired ) : void
other NMF.Transformations.Core.Computation The other computation context
isRequired bool True, if the other context is a strict requirement
return void