Show / Hide Table of Contents

Class TransformationRuleSource<TIn1, TIn2, TOut>

Represents the usage of a transformation rule with two input arguments in a relational pattern

Inheritance
object
TransformationRuleSource<TIn1, TIn2, TOut>
Implements
ITransformationRuleDependency
INotifyEnumerable<TransformationComputationWrapper<TIn1, TIn2, TOut>>
IEnumerable<TransformationComputationWrapper<TIn1, TIn2, TOut>>
INotifyEnumerable
IEnumerable
INotifyCollectionChanged
INotifiable
IDisposable
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: NMF.Transformations.Linq
Assembly: NMF.Transformations.dll
Syntax
public class TransformationRuleSource<TIn1, TIn2, TOut> : ITransformationRuleDependency, INotifyEnumerable<TransformationComputationWrapper<TIn1, TIn2, TOut>>, IEnumerable<TransformationComputationWrapper<TIn1, TIn2, TOut>>, INotifyEnumerable, IEnumerable, INotifyCollectionChanged, INotifiable, IDisposable where TIn1 : class where TIn2 : class where TOut : class
Type Parameters
Name Description
TIn1

The type of the first transformation rule input argument

TIn2

The type of the second transformation rule input argument

TOut

The transformation rule output type

Constructors

| Edit this page View Source

TransformationRuleSource(TransformationRuleBase<TIn1, TIn2, TOut>, ITransformationContext)

Creates a new TransformationRuleSource instance for the given transformation rule in the given context

Declaration
public TransformationRuleSource(TransformationRuleBase<TIn1, TIn2, TOut> rule, ITransformationContext context)
Parameters
Type Name Description
TransformationRuleBase<TIn1, TIn2, TOut> 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 Source

Context

Gets the context in which the transformation rule source is active

Declaration
public ITransformationContext Context { get; }
Property Value
Type Description
ITransformationContext
| Edit this page View Source

Dependencies

Nodes that notify this node.

Declaration
public IEnumerable<INotifiable> Dependencies { get; }
Property Value
Type Description
IEnumerable<INotifiable>
| Edit this page View Source

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
| Edit this page View Source

ExecutionMetaData

Used by the execution engine during incremental execution.

Declaration
public ExecutionMetaData ExecutionMetaData { get; }
Property Value
Type Description
ExecutionMetaData
| Edit this page View Source

Filter

Gets or sets the filter to be used to filter computations

Declaration
public Func<TransformationComputationWrapper<TIn1, TIn2, TOut>, bool> Filter { get; set; }
Property Value
Type Description
Func<TransformationComputationWrapper<TIn1, TIn2, TOut>, bool>
| Edit this page View Source

Successors

The nodes that will get notified by this node.

Declaration
public ISuccessorList Successors { get; }
Property Value
Type Description
ISuccessorList
| Edit this page View Source

TransformationRule

Gets the transformation rule this transformation rule source is responsible for

Declaration
public TransformationRuleBase<TIn1, TIn2, TOut> TransformationRule { get; }
Property Value
Type Description
TransformationRuleBase<TIn1, TIn2, TOut>

Methods

| Edit this page View Source

Dispose()

Clears dependencies

Declaration
public void Dispose()
| Edit this page View Source

Dispose(bool)

Clears dependencies

Declaration
protected virtual void Dispose(bool disposing)
Parameters
Type Name Description
bool disposing

A value indicating whether Dispose was called

| Edit this page View Source

GetEnumerator()

Gets an enumerator that enumerates the collected computations so far

Declaration
public IEnumerator<TransformationComputationWrapper<TIn1, TIn2, TOut>> GetEnumerator()
Returns
Type Description
IEnumerator<TransformationComputationWrapper<TIn1, TIn2, TOut>>

An enumerator

| Edit this page View Source

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

| Edit this page View Source

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 Source

CollectionChanged

Gets fired when new elements appear in the trace

Declaration
public event NotifyCollectionChangedEventHandler CollectionChanged
Event Type
Type Description
NotifyCollectionChangedEventHandler

Implements

ITransformationRuleDependency
INotifyEnumerable<T>
IEnumerable<T>
INotifyEnumerable
IEnumerable
INotifyCollectionChanged
INotifiable
IDisposable
  • Edit this page
  • View Source
In this article
Back to top Generated by DocFX