Class InPlaceTransformationRuleSource<TIn>
Represents the usage of a transformation rule with one input argument in a relational pattern
Implements
Inherited Members
Namespace: NMF.Transformations.Linq
Assembly: NMF.Transformations.dll
Syntax
public class InPlaceTransformationRuleSource<TIn> : ITransformationRuleDependency, INotifyEnumerable<InPlaceComputationWrapper<TIn>>, IEnumerable<InPlaceComputationWrapper<TIn>>, INotifyEnumerable, IEnumerable, INotifyCollectionChanged, INotifiable, IDisposable where TIn : class
Type Parameters
Name | Description |
---|---|
TIn | The type of the transformation rule input argument |
Constructors
| Edit this page View SourceInPlaceTransformationRuleSource(InPlaceTransformationRuleBase<TIn>, ITransformationContext)
Creates a new TransformationRuleSource instance for the given transformation rule in the given context
Declaration
public InPlaceTransformationRuleSource(InPlaceTransformationRuleBase<TIn> rule, ITransformationContext context)
Parameters
Type | Name | Description |
---|---|---|
InPlaceTransformationRuleBase<TIn> | rule | The transformation rule that should be used as source |
ITransformationContext | context | The context in which the computations should be used by the current instance |
Properties
| Edit this page View SourceContext
Gets the context in which the transformation rule source is active
Declaration
public ITransformationContext Context { get; }
Property Value
Type | Description |
---|---|
ITransformationContext |
Dependencies
Nodes that notify this node.
Declaration
public IEnumerable<INotifiable> Dependencies { get; }
Property Value
Type | Description |
---|---|
IEnumerable<INotifiable> |
ExecuteBefore
Gets or sets a value indicating whether the computation object should be forwarded before or after the dependencies are resolved
Declaration
public bool ExecuteBefore { get; set; }
Property Value
Type | Description |
---|---|
bool |
ExecutionMetaData
Used by the execution engine during incremental execution.
Declaration
public ExecutionMetaData ExecutionMetaData { get; }
Property Value
Type | Description |
---|---|
ExecutionMetaData |
Filter
Gets or sets the filter to be used to filter computations
Declaration
public Func<InPlaceComputationWrapper<TIn>, bool> Filter { get; set; }
Property Value
Type | Description |
---|---|
Func<InPlaceComputationWrapper<TIn>, bool> |
Successors
The nodes that will get notified by this node.
Declaration
public ISuccessorList Successors { get; }
Property Value
Type | Description |
---|---|
ISuccessorList |
TransformationRule
Gets the transformation rule this transformation rule source is responsible for
Declaration
public InPlaceTransformationRuleBase<TIn> TransformationRule { get; }
Property Value
Type | Description |
---|---|
InPlaceTransformationRuleBase<TIn> |
Methods
| Edit this page View SourceDispose()
Clears dependencies
Declaration
public void Dispose()
Dispose(bool)
Clears dependencies
Declaration
protected virtual void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
bool | disposing | A value indicating whether Dispose was called |
GetEnumerator()
Gets an enumerator that enumerates the collected computations so far
Declaration
public IEnumerator<InPlaceComputationWrapper<TIn>> GetEnumerator()
Returns
Type | Description |
---|---|
IEnumerator<InPlaceComputationWrapper<TIn>> | An enumerator |
HandleDependency(Computation)
Receives a new computation from the computation rule
Declaration
public void HandleDependency(Computation computation)
Parameters
Type | Name | Description |
---|---|---|
Computation | computation | The computation that is received |
Notify(IList<INotificationResult>)
Gets called when one of the dependencies signals a notification.
Declaration
public INotificationResult Notify(IList<INotificationResult> sources)
Parameters
Type | Name | Description |
---|---|---|
IList<INotificationResult> | sources | Contains information about what triggered this notification. |
Returns
Type | Description |
---|---|
INotificationResult | An object describing the changes that happened in this notification. |
Events
| Edit this page View SourceCollectionChanged
Gets fired when new elements appear in the trace
Declaration
public event NotifyCollectionChangedEventHandler CollectionChanged
Event Type
Type | Description |
---|---|
NotifyCollectionChangedEventHandler |