Free cookie consent management tool by TermsFeed Policy Generator

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

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

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

File size: 1.0 KB
Line 
1namespace HeuristicLab.Problems.ProgramSynthesis {
2  using HeuristicLab.Common;
3  using HeuristicLab.Core;
4  using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
5
6  [StorableClass]
7  public class PlushEntry : Item {
8    public PlushEntry() { }
9
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]
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;
22      Silent = origin.Silent;
23    }
24
25    [Storable]
26    public Expression Instruction { get; set; }
27    [Storable]
28    public int Close { get; set; }
29    [Storable]
30    public bool Silent { get; set; }
31
32    public override IDeepCloneable Clone(Cloner cloner) {
33      return new PlushEntry(this, cloner);
34    }
35  }
36}
Note: See TracBrowser for help on using the repository browser.