Changeset 15275 for branches/PushGP/HeuristicLab.PushGP/HeuristicLab.Problems.ProgramSynthesis/Push/Encoding/PlushEntry.cs
- Timestamp:
- 07/20/17 11:39:53 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/PushGP/HeuristicLab.PushGP/HeuristicLab.Problems.ProgramSynthesis/Push/Encoding/PlushEntry.cs
r15273 r15275 1 1 namespace HeuristicLab.Problems.ProgramSynthesis.Push.Encoding { 2 using HeuristicLab.Common; 3 using HeuristicLab.Core; 4 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 2 5 using HeuristicLab.Problems.ProgramSynthesis.Push.Expressions; 3 6 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] 5 19 public Expression Instruction { get; set; } 20 [Storable] 6 21 public int Close { get; set; } 22 23 public override IDeepCloneable Clone(Cloner cloner) { 24 return new PlushEntry(this, cloner); 25 } 7 26 } 8 27 }
Note: See TracChangeset
for help on using the changeset viewer.