Free cookie consent management tool by TermsFeed Policy Generator

source: branches/PushGP/HeuristicLab.PushGP/HeuristicLab.Problems.ProgramSynthesis/Push/Encoding/PlushEntry.cs @ 15287

Last change on this file since 15287 was 15275, checked in by pkimmesw, 7 years ago

#2665 Added PlushEncoding, ZeroErrorDistributionAnalzer

File size: 837 bytes
Line 
1namespace HeuristicLab.Problems.ProgramSynthesis.Push.Encoding {
2  using HeuristicLab.Common;
3  using HeuristicLab.Core;
4  using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
5  using HeuristicLab.Problems.ProgramSynthesis.Push.Expressions;
6
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]
19    public Expression Instruction { get; set; }
20    [Storable]
21    public int Close { get; set; }
22
23    public override IDeepCloneable Clone(Cloner cloner) {
24      return new PlushEntry(this, cloner);
25    }
26  }
27}
Note: See TracBrowser for help on using the repository browser.