Interface IDerivation
A derivation is a (computed) value that is derived from other (observable) values.
Namespace: Cortex.Net
Assembly: Cortex.Net.dll
Syntax
public interface IDerivation : IDependencyNode
Properties
| Improve this Doc View SourceDependenciesState
Gets or sets the state of the dependencies of this IDerivation instance.
Declaration
DerivationState DependenciesState { get; set; }
Property Value
Type | Description |
---|---|
DerivationState |
IsTracing
Gets or sets the trace mode of this Derivation.
Declaration
TraceMode IsTracing { get; set; }
Property Value
Type | Description |
---|---|
TraceMode |
NewObserving
Gets a set of IObservable instances that have been hit during a new derivation run.
Declaration
ISet<IObservable> NewObserving { get; }
Property Value
Type | Description |
---|---|
ISet<IObservable> |
Observing
Gets a set of IObservable instances that are currently observed.
Declaration
ISet<IObservable> Observing { get; }
Property Value
Type | Description |
---|---|
ISet<IObservable> |
RequiresObservable
Gets a value indicating whether to warn if this derivation is required to visit at least one observable.
Declaration
bool RequiresObservable { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
RunId
Gets or sets the id of the current run of a derivation. Each time the derivation is tracked this number is increased by one. This number is unique within the current shared state.
Declaration
int RunId { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
Methods
| Improve this Doc View SourceOnBecomeStale()
Method that is called when the IDerivation instance has become stale.
Declaration
void OnBecomeStale()