Free cookie consent management tool by TermsFeed Policy Generator

source: branches/2895_PushGP_GenealogyAnalysis/HeuristicLab.Problems.ProgramSynthesis/Push/Encoding/PlushEntry.cs

Last change on this file was 15771, checked in by bburlacu, 7 years ago

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

File size: 1.0 KB
RevLine 
[15771]1namespace HeuristicLab.Problems.ProgramSynthesis {
[15275]2  using HeuristicLab.Common;
3  using HeuristicLab.Core;
4  using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
[15273]5
[15275]6  [StorableClass]
7  public class PlushEntry : Item {
8    public PlushEntry() { }
9
[15334]10    public PlushEntry(Expression instruction = null, int close = 0, bool silent = false) {
11      Instruction = instruction;
12      Close = close;
13      Silent = silent;
14    }
15
16    [StorableConstructor]
[15275]17    public PlushEntry(bool deserializing) : base(deserializing) { }
18
19    public PlushEntry(PlushEntry origin, Cloner cloner) : base(origin, cloner) {
20      Instruction = cloner.Clone(origin.Instruction);
21      Close = origin.Close;
[15334]22      Silent = origin.Silent;
[15275]23    }
24
25    [Storable]
[15273]26    public Expression Instruction { get; set; }
[15275]27    [Storable]
[15273]28    public int Close { get; set; }
[15334]29    [Storable]
30    public bool Silent { get; set; }
[15275]31
32    public override IDeepCloneable Clone(Cloner cloner) {
33      return new PlushEntry(this, cloner);
34    }
[15273]35  }
36}
Note: See TracBrowser for help on using the repository browser.