Changeset 14834 for branches/PushGP/HeuristicLab.PushGP/HeuristicLab.Problems.ProgramSynthesis/Push/Interpreter/IPushInterpreter.cs
- Timestamp:
- 04/10/17 00:27:31 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/PushGP/HeuristicLab.PushGP/HeuristicLab.Problems.ProgramSynthesis/Push/Interpreter/IPushInterpreter.cs
r14777 r14834 7 7 8 8 using HeuristicLab.Problems.ProgramSynthesis.Push.Configuration; 9 using HeuristicLab.Problems.ProgramSynthesis.Push.Data.Pool;10 9 11 10 using Stack; … … 13 12 public interface IPushInterpreter { 14 13 IRandom Random { get; set; } 15 16 IStack<Expression> CodeStack { get; } 17 IStack<Expression> ExecStack { get; } 18 IStack<string> NameStack { get; } 19 IStack<bool> BooleanStack { get; } 20 IStack<long> IntegerStack { get; } 21 IStack<double> FloatStack { get; } 22 IStack<char> CharStack { get; } 23 IStack<string> StringStack { get; } 24 14 IPushStack<Expression> CodeStack { get; } 15 IPushStack<Expression> ExecStack { get; } 16 IPushStack<string> NameStack { get; } 17 IPushStack<bool> BooleanStack { get; } 18 IPushStack<long> IntegerStack { get; } 19 IPushStack<double> FloatStack { get; } 20 IPushStack<char> CharStack { get; } 21 IPushStack<string> StringStack { get; } 22 IPushStack<List<long>> IntegerVectorStack { get; } 23 IPushStack<List<double>> FloatVectorStack { get; } 24 IPushStack<List<bool>> BooleanVectorStack { get; } 25 IPushStack<List<string>> StringVectorStack { get; } 25 26 IDictionary<string, Expression> CustomExpressions { get; } 26 27 27 IReadOnlyPushConfiguration Configuration { get; } 28 29 InterpreterPoolContainer PoolContainer { get; }30 31 bool IsNameQuoteFlagSet { get; set; }32 33 28 void Clear(); 34 29 void Run(string code, bool stepwise = false); 35 30 void Run(Expression expression, bool stepwise = false); 36 Task RunAsync(Expression expression, bool paused = false,CancellationToken token = default(CancellationToken));37 Task RunAsync(string code, bool paused = false,CancellationToken token = default(CancellationToken));31 Task RunAsync(Expression expression, CancellationToken token = default(CancellationToken)); 32 Task RunAsync(string code, CancellationToken token = default(CancellationToken)); 38 33 Task AbortAndResetAsync(); 39 34 Task AbortAsync(); … … 41 36 void Resume(); 42 37 Task ResumeAsync(); 43 44 38 bool Step(); 45 void PrintStacks();46 39 } 47 40 }
Note: See TracChangeset
for help on using the changeset viewer.