Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
07/20/17 11:39:53 (7 years ago)
Author:
pkimmesw
Message:

#2665 Added PlushEncoding, ZeroErrorDistributionAnalzer

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/PushGP/HeuristicLab.PushGP/HeuristicLab.Problems.ProgramSynthesis/Push/Encoding/PlushEntry.cs

    r15273 r15275  
    11namespace HeuristicLab.Problems.ProgramSynthesis.Push.Encoding {
     2  using HeuristicLab.Common;
     3  using HeuristicLab.Core;
     4  using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
    25  using HeuristicLab.Problems.ProgramSynthesis.Push.Expressions;
    36
    4   public class PlushEntry {
     7  [StorableClass]
     8  public class PlushEntry : Item {
     9    public PlushEntry() { }
     10
     11    public PlushEntry(bool deserializing) : base(deserializing) { }
     12
     13    public PlushEntry(PlushEntry origin, Cloner cloner) : base(origin, cloner) {
     14      Instruction = cloner.Clone(origin.Instruction);
     15      Close = origin.Close;
     16    }
     17
     18    [Storable]
    519    public Expression Instruction { get; set; }
     20    [Storable]
    621    public int Close { get; set; }
     22
     23    public override IDeepCloneable Clone(Cloner cloner) {
     24      return new PlushEntry(this, cloner);
     25    }
    726  }
    827}
Note: See TracChangeset for help on using the changeset viewer.