Interface IComputationContext
This interface represents the transformation engine context information attached to a computation
Namespace: NMF.Transformations.Core
Assembly: NMF.Transformations.Core.dll
Syntax
public interface IComputationContext
Properties
| Edit this page View SourceIsDelayed
Gets a value indicating whether this computation is delayed
Declaration
bool IsDelayed { get; }
Property Value
Type | Description |
---|---|
bool |
MinOutputDelayLevel
Gets the minimum viable output delay level
Declaration
byte MinOutputDelayLevel { get; }
Property Value
Type | Description |
---|---|
byte |
MinTransformDelayLevel
Gets the minimum viable transformation delay level
Declaration
byte MinTransformDelayLevel { get; }
Property Value
Type | Description |
---|---|
byte |
TransformationContext
The transformation context in which the computation is made
Declaration
ITransformationContext TransformationContext { get; }
Property Value
Type | Description |
---|---|
ITransformationContext |
Methods
| Edit this page View SourceConnectWith(Computation)
Connects the computation context with the given computation
Declaration
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
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
void DelayTransformationAtLeast(byte delayLevel)
Parameters
Type | Name | Description |
---|---|---|
byte | delayLevel |
InitializeOutput(object)
Initializes the output of this computation
Declaration
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
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 |