C# Class Algo.Runtime.Build.Runtime.AlgorithmInterpreter

Provide a set of feature to interpreter an AlgorithmProgram
Inheritance: IDisposable
显示文件 Open project: veler/AlgorithmSimulator

Private Properties

Property Type Description
AddStateChangeHistory void
Break void
ChangeState void
Pause void
RunAsync Task
Stop void

Public Methods

Method Description
AlgorithmInterpreter ( AlgorithmProgram program ) : Algo.Runtime.Build.AlgorithmDOM.DOM

Initialize a new instance of AlgorithmInterpreter

Dispose ( ) : void

Dispose the resources

Pause ( ) : void

Put the program in pause

Resume ( ) : void

Resume a paused program

StartAsync ( bool debugMode ) : Task

Start the interpreter

StepInto ( ) : void

Step into the current statement

StepOut ( ) : void

Step out the current method and pause in the parent block

StepOver ( ) : void

Step over the current statement without goind inside the method, if it's a method invocation

Stop ( ) : void

Stop the execution of the current interpreter

Private Methods

Method Description
AddStateChangeHistory ( Algo.Runtime.Build.Runtime.AlgorithmInterpreterStateEventArgs algorithmInterpreterStateEventArgs ) : void

Add a new state to the historic

Break ( bool calledByChangeState, Algo.Runtime.Build.Runtime.AlgorithmInterpreterStateEventArgs algorithmInterpreterState = null ) : void

Put the program in pause after a breakpoint or an error

ChangeState ( object source, Algo.Runtime.Build.Runtime.AlgorithmInterpreterStateEventArgs e ) : void

Change the state of the algorithm interpreter

Pause ( bool calledByChangeState ) : void

Put the program in pause

RunAsync ( bool debugMode ) : Task

Start the interpreter

Stop ( bool calledByChangeState, bool withError = false ) : void

Stop the execution of the current interpreter

Method Details

AlgorithmInterpreter() public method

Initialize a new instance of AlgorithmInterpreter
public AlgorithmInterpreter ( AlgorithmProgram program ) : Algo.Runtime.Build.AlgorithmDOM.DOM
program AlgorithmProgram the program to interpret
return Algo.Runtime.Build.AlgorithmDOM.DOM

Dispose() public method

Dispose the resources
public Dispose ( ) : void
return void

Pause() public method

Put the program in pause
public Pause ( ) : void
return void

Resume() public method

Resume a paused program
public Resume ( ) : void
return void

StartAsync() public method

Start the interpreter
public StartAsync ( bool debugMode ) : Task
debugMode bool Defines if the debug mode must be enabled or not
return Task

StepInto() public method

Step into the current statement
public StepInto ( ) : void
return void

StepOut() public method

Step out the current method and pause in the parent block
public StepOut ( ) : void
return void

StepOver() public method

Step over the current statement without goind inside the method, if it's a method invocation
public StepOver ( ) : void
return void

Stop() public method

Stop the execution of the current interpreter
public Stop ( ) : void
return void