EvaluationContext Class

Context of the worksheet evaluation process.

Definition

Namespace: SMath.Math
Assembly: SMath.Controls (in SMath.Controls.dll) Version: 1.73.9126.0
C#
public class EvaluationContext : IEvaluationContextInternal
Inheritance
Object    EvaluationContext
Implements
IEvaluationContextInternal

Constructors

EvaluationContext(SessionProfile) Constructs EvaluationContext with default settings.
EvaluationContext(SessionProfile, WorksheetParams) Constructs EvaluationContext with settings taken from the specified WorksheetParams.

Properties

Depth Determines depth of the context.
FileName Current worksheet full file name.
FractionsTypeNumeric Output type of the fractions for numeric calculations.
GeneratorVersion Version of the application.
OnError Defines if automatic pause on calculation error enabled for the Worksheet.
OutputUnitsSystem Gets or sets default output units system for calculations with units of measurements.
SessionProfile Current Session Profile describes all session specific parameters. Used as a main context for all IO/visualization/calculation operations.
StackDepth Determines stack depth of evaluation.
SuppressUI Determines whether any interactions with user is not supported.

Methods

AddBreakpoint Sets or toggles a breakpoint.
CheckBreakpoint Checks for the required interruption in the current calculation process.
CreateStore() Creates a new Store for this context.
CreateStore(IEnumerable<Definition>) Create a Store object with specified definitions included.
EqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
FinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
GetHashCodeServes as the default hash function.
(Inherited from Object)
GetTypeGets the Type of the current instance.
(Inherited from Object)
MemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Pause Pauses evaluation.
Resume Resumes evaluation after Pause().
ToStringReturns a string that represents the current object.
(Inherited from Object)

Events

OnDataTrace Occurs on data sent to trace.
OnDebugStart Occurs on debug session started.
OnErrorState Occurs during evaluation when errors are reported.
OnEvaluation Occurs on change of evaluation process status.
OnProgressChanged Occurs during evaluation when the current progress is reported.

Explicit Interface Implementations

IEvaluationContextInternal.BreakNext Specifies whether evaluation should be stopped for debugging on the next upcoming step.
IEvaluationContextInternal.ChangeErrorState Raises OnErrorState event.
IEvaluationContextInternal.ChangeEvaluationState Raises OnEvaluation event.
IEvaluationContextInternal.ProgressChange Raises OnProgressChanged event.
IEvaluationContextInternal.TerminateNext Specifies whether evaluation should be terminated on the next upcoming step.

See Also