Show / Hide Table of Contents

Interface INotifyExpression<T>

Represents a typed expression with additional information on the program flow

Inherited Members
INotifyValue<T>.Value
INotifyValue<T>.ValueChanged
INotifyExpression.CanBeConstant
INotifyExpression.IsConstant
INotifyExpression.IsParameterFree
INotifyExpression.ValueObject
INotifiable.Successors
INotifiable.Dependencies
INotifiable.Notify(IList<INotificationResult>)
INotifiable.ExecutionMetaData
IDisposable.Dispose()
Namespace: NMF.Expressions
Assembly: NMF.Expressions.dll
Syntax
public interface INotifyExpression<out T> : INotifyValue<T>, INotifyExpression, INotifiable, IDisposable
Type Parameters
Name Description
T

The type of the expression

Methods

| Edit this page View Source

ApplyParameters(IDictionary<string, object>, IDictionary<INotifiable, INotifiable>)

Applies the given set of parameters to the expression

Declaration
INotifyExpression<out T> ApplyParameters(IDictionary<string, object> parameters, IDictionary<INotifiable, INotifiable> trace)
Parameters
Type Name Description
IDictionary<string, object> parameters

A set of parameter values

IDictionary<INotifiable, INotifiable> trace

A trace to make sure parameters are only applied once for every DDG node

Returns
Type Description
INotifyExpression<T>

A new expression with all parameter placeholders replaced with the parameter values

Remarks

In case that the current expression is parameter free, it simply returns itself

| Edit this page View Source

Reduce()

Simplifies the current expression

Declaration
INotifyExpression<out T> Reduce()
Returns
Type Description
INotifyExpression<T>

A simpler expression repüresenting the same incremental value (e.g. a constant if this expression can be constant), otherwise itself

Extension Methods

DebugExtensions.ExportToDgml(INotifiable, string)
DebugExtensions.Visualize(INotifiable)
ExpressionExtensions.AsOne<T>(T)
ReversableExtensions.AsReversable<T>(INotifyValue<T>, Action<T>)
  • Edit this page
  • View Source
In this article
Back to top Generated by DocFX