Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
02/13/18 16:56:35 (6 years ago)
Author:
bburlacu
Message:

#2895: Add solution skeleton for PushGP with genealogy analysis.

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 
     1using System;
     2using System.Collections.Generic;
     3using System.Linq;
     4using System.Runtime.CompilerServices;
     5using System.Threading;
     6using System.Threading.Tasks;
     7using HeuristicLab.Core;
     8using HeuristicLab.Random;
     9
     10namespace HeuristicLab.Problems.ProgramSynthesis {
    1711  public class PushInterpreter : IInternalPushInterpreter, IDisposable {
    1812    private Task currentTask;
     
    8579    public bool IsAborted { get; private set; }
    8680
    87     public bool IsRunning
    88     {
    89       get
    90       {
     81    public bool IsRunning {
     82      get {
    9183        return !ExecStack.IsEmpty &&
    9284               !IsPaused &&
     
    9688    }
    9789
    98     public bool IsCompleted
    99     {
    100       get
    101       {
     90    public bool IsCompleted {
     91      get {
    10292        return ExecStack.IsEmpty || ExecCounter >= Configuration.EvalPushLimit;
    10393      }
    10494    }
    10595
    106     public bool CanStep
    107     {
    108       get
    109       {
     96    public bool CanStep {
     97      get {
    11098        return !IsCompleted && !IsAborted && IsPaused;
    11199      }
Note: See TracChangeset for help on using the changeset viewer.