Class ComputationContext
The default implementation for a computation context
Implements
Inherited Members
Namespace: NMF.Transformations.Core
Assembly: NMF.Transformations.Core.dll
Syntax
public class ComputationContext : IComputationContext
Constructors
| Edit this page View SourceComputationContext(ITransformationContext)
Creates a new computation context for the given transformation context
Declaration
public ComputationContext(ITransformationContext context)
Parameters
Type | Name | Description |
---|---|---|
ITransformationContext | context | The transformation context |
Properties
| Edit this page View SourceIsDelayed
Gets a value indicating whether the output creation for this computation is delayed
Declaration
public bool IsDelayed { get; }
Property Value
Type | Description |
---|---|
bool |
MinOutputDelayLevel
Gets the minimum output delay level for this cmputation
Declaration
public byte MinOutputDelayLevel { get; }
Property Value
Type | Description |
---|---|
byte |
MinTransformDelayLevel
Gets the minimum transformation delay level for this computation
Declaration
public byte MinTransformDelayLevel { get; }
Property Value
Type | Description |
---|---|
byte |
TransformationContext
The transformation context in which the computation is made
Declaration
public ITransformationContext TransformationContext { get; }
Property Value
Type | Description |
---|---|
ITransformationContext |
Methods
| Edit this page View SourceConnectWith(Computation)
Connects the computation context with the given computation
Declaration
public virtual void ConnectWith(Computation computation)
Parameters
Type | Name | Description |
---|---|---|
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
Declaration
public void DelayOutputAtLeast(byte delayLevel)
Parameters
Type | Name | Description |
---|---|---|
byte | delayLevel | The minimum delay level for this computation |
DelayTransformationAtLeast(byte)
Configures the computation to be transformed at least with the given delay level
Declaration
public void DelayTransformationAtLeast(byte delayLevel)
Parameters
Type | Name | Description |
---|---|---|
byte | delayLevel |
InitializeOutput(object)
Initializes the output of this computation
Declaration
public void InitializeOutput(object output)
Parameters
Type | Name | Description |
---|---|---|
object | output |
MarkRequire(Computation, bool)
Mark that this computation context requires another computation context to be done
Declaration
public virtual void MarkRequire(Computation other, bool isRequired)
Parameters
Type | Name | Description |
---|---|---|
Computation | other | The other computation context |
bool | isRequired | True, if the other context is a strict requirement |