Class AbstractTrace
Represents the base class for traces.
Inheritance
Implements
Inherited Members
Namespace: NMF.Transformations.Core
Assembly: NMF.Transformations.Core.dll
Syntax
public abstract class AbstractTrace : ITransformationTrace
Remarks
All trace operations are implemented and fully functional. However, they might be accelerated using index structures.
Properties
| Edit this page View SourceComputations
The computations, the trace is based upon
Declaration
public abstract IEnumerable<ITraceEntry> Computations { get; }
Property Value
Type | Description |
---|---|
IEnumerable<ITraceEntry> |
Methods
| Edit this page View SourcePublishEntry(ITraceEntry)
Publishes the given computation to the trace
Declaration
public abstract void PublishEntry(ITraceEntry traceEntry)
Parameters
Type | Name | Description |
---|---|---|
ITraceEntry | traceEntry | The computation that should be added to the trace |
RevokeEntry(ITraceEntry)
Revokes the given computation and deletes it from the trace
Declaration
public abstract void RevokeEntry(ITraceEntry traceEntry)
Parameters
Type | Name | Description |
---|---|---|
ITraceEntry | traceEntry | The computation that is to be revoked |
Trace(object[])
Traces the computations based upon the specified input
Declaration
public virtual IEnumerable<ITraceEntry> Trace(object[] input)
Parameters
Type | Name | Description |
---|---|---|
object[] | input | The input arguments |
Returns
Type | Description |
---|---|
IEnumerable<ITraceEntry> | The computations with the given inputs |
TraceAll(Type[], Type)
Traces all computations that match the given type signature
Declaration
public virtual IEnumerable<ITraceEntry> TraceAll(Type[] inputTypes, Type outputType)
Parameters
Type | Name | Description |
---|---|---|
Type[] | inputTypes | The input types |
Type | outputType | The output types |
Returns
Type | Description |
---|---|
IEnumerable<ITraceEntry> | A collection of computations |
TraceAllIn(GeneralTransformationRule)
Traces all computations with any inputs that math the given filters with the specified transformation rule
Declaration
public virtual IEnumerable<ITraceEntry> TraceAllIn(GeneralTransformationRule rule)
Parameters
Type | Name | Description |
---|---|---|
GeneralTransformationRule | rule | The transformation rule |
Returns
Type | Description |
---|---|
IEnumerable<ITraceEntry> | A collection with all computations made under these circumstances |
TraceIn(GeneralTransformationRule, params object[])
Traces the computation based upon the specified input with the specified transformation rule
Declaration
public virtual IEnumerable<ITraceEntry> TraceIn(GeneralTransformationRule rule, params object[] input)
Parameters
Type | Name | Description |
---|---|---|
GeneralTransformationRule | rule | The transformation rule the object was transformed with |
object[] | input | The input arguments |
Returns
Type | Description |
---|---|
IEnumerable<ITraceEntry> | The computation or null, if there was none |
TraceMany(Type[], Type, IEnumerable<object[]>)
Traces the computations of the specified inputs that match the given type signature
Declaration
public virtual IEnumerable<ITraceEntry> TraceMany(Type[] inputTypes, Type outputType, IEnumerable<object[]> inputs)
Parameters
Type | Name | Description |
---|---|---|
Type[] | inputTypes | The input types |
Type | outputType | The output types |
IEnumerable<object[]> | inputs | A collection of input arguments |
Returns
Type | Description |
---|---|
IEnumerable<ITraceEntry> | A collection of computations |
TraceManyIn(GeneralTransformationRule, IEnumerable<object[]>)
Traces the computations of the specified inputs with the specified transformation rules
Declaration
public virtual IEnumerable<ITraceEntry> TraceManyIn(GeneralTransformationRule rule, IEnumerable<object[]> inputs)
Parameters
Type | Name | Description |
---|---|---|
GeneralTransformationRule | rule | The transformation rules that transformed the specified inputs |
IEnumerable<object[]> | inputs | A collection of input arguments |
Returns
Type | Description |
---|---|
IEnumerable<ITraceEntry> | A collection of computations |