Free cookie consent management tool by TermsFeed Policy Generator

source: branches/PushGP/HeuristicLab.PushGP/HeuristicLab.Problems.ProgramSynthesis/Push/Interpreter/IPushInterpreter.cs @ 14908

Last change on this file since 14908 was 14897, checked in by pkimmesw, 8 years ago

#2665 Dynamic ErcValues, Separate Push from BenchmarkSuite Push

File size: 1.6 KB
Line 
1namespace HeuristicLab.Problems.ProgramSynthesis.Push.Interpreter {
2  using System.Collections.Generic;
3  using System.Threading;
4  using System.Threading.Tasks;
5  using Core;
6  using Expressions;
7
8  using HeuristicLab.Problems.ProgramSynthesis.Push.Configuration;
9
10  using Stack;
11
12  public interface IPushInterpreter {
13    IRandom Random { get; set; }
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; }
26    IPushStack<string> PrintStack { get; }
27    IDictionary<string, Expression> CustomExpressions { get; }
28    IReadOnlyPushConfiguration Configuration { get; }
29    void Clear();
30    void Reset();
31    void Run(string code, bool stepwise = false);
32    void Run(Expression expression, bool stepwise = false);
33    Task RunAsync(Expression expression, CancellationToken token = default(CancellationToken));
34    Task RunAsync(string code, CancellationToken token = default(CancellationToken));
35    Task AbortAndResetAsync();
36    Task AbortAsync();
37    Task PauseAsync();
38    void Resume();
39    Task ResumeAsync();
40    bool Step();
41  }
42}
Note: See TracBrowser for help on using the repository browser.