Changeset 15771 for branches/2895_PushGP_GenealogyAnalysis/HeuristicLab.Problems.ProgramSynthesis/Push/Interpreter/PushInterpreter.cs
- Timestamp:
- 02/13/18 16:56:35 (6 years ago)
- Location:
- branches/2895_PushGP_GenealogyAnalysis
- Files:
-
- 1 added
- 1 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
branches/2895_PushGP_GenealogyAnalysis/HeuristicLab.Problems.ProgramSynthesis/Push/Interpreter/PushInterpreter.cs
r15341 r15771 1 namespace HeuristicLab.Problems.ProgramSynthesis.Push.Interpreter { 2 using System; 3 using System.Collections.Generic; 4 using System.Linq; 5 using System.Runtime.CompilerServices; 6 using System.Threading; 7 using System.Threading.Tasks; 8 using Attributes; 9 using Configuration; 10 using Core; 11 using Expressions; 12 using Parser; 13 using Random; 14 using Stack; 15 16 1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Runtime.CompilerServices; 5 using System.Threading; 6 using System.Threading.Tasks; 7 using HeuristicLab.Core; 8 using HeuristicLab.Random; 9 10 namespace HeuristicLab.Problems.ProgramSynthesis { 17 11 public class PushInterpreter : IInternalPushInterpreter, IDisposable { 18 12 private Task currentTask; … … 85 79 public bool IsAborted { get; private set; } 86 80 87 public bool IsRunning 88 { 89 get 90 { 81 public bool IsRunning { 82 get { 91 83 return !ExecStack.IsEmpty && 92 84 !IsPaused && … … 96 88 } 97 89 98 public bool IsCompleted 99 { 100 get 101 { 90 public bool IsCompleted { 91 get { 102 92 return ExecStack.IsEmpty || ExecCounter >= Configuration.EvalPushLimit; 103 93 } 104 94 } 105 95 106 public bool CanStep 107 { 108 get 109 { 96 public bool CanStep { 97 get { 110 98 return !IsCompleted && !IsAborted && IsPaused; 111 99 }
Note: See TracChangeset
for help on using the changeset viewer.