Show / Hide Table of Contents

Class TransformationRuleSource<TIn, TOut>

Represents the usage of a transformation rule with one input argument in a relational pattern

Inheritance
object
TransformationRuleSource<TIn, TOut>
Implements
ITransformationRuleDependency
INotifyEnumerable<TransformationComputationWrapper<TIn, TOut>>
IEnumerable<TransformationComputationWrapper<TIn, 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<TIn, TOut> : ITransformationRuleDependency, INotifyEnumerable<TransformationComputationWrapper<TIn, TOut>>, IEnumerable<TransformationComputationWrapper<TIn, TOut>>, INotifyEnumerable, IEnumerable, INotifyCollectionChanged, INotifiable, IDisposable where TIn : class where TOut : class
Type Parameters
Name Description
TIn

The type of the transformation rule input argument

TOut

The transformation rule output type

Constructors

| Edit this page View Source

TransformationRuleSource(TransformationRuleBase<TIn, TOut>, ITransformationContext)

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

Declaration
public TransformationRuleSource(TransformationRuleBase<TIn, TOut> rule, ITransformationContext context)
Parameters
Type Name Description
TransformationRuleBase<TIn, 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<TIn, TOut>, bool> Filter { get; set; }
Property Value
Type Description
Func<TransformationComputationWrapper<TIn, 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<TIn, TOut> TransformationRule { get; }
Property Value
Type Description
TransformationRuleBase<TIn, 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<TIn, TOut>> GetEnumerator()
Returns
Type Description
IEnumerator<TransformationComputationWrapper<TIn, 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