Changeset 14029 for branches/crossvalidation-2434/HeuristicLab.Problems.GeneticProgramming/3.3/LawnMower/Problem.cs
- Timestamp:
- 07/08/16 14:40:02 (8 years ago)
- Location:
- branches/crossvalidation-2434
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/crossvalidation-2434
- Property svn:mergeinfo changed
-
branches/crossvalidation-2434/HeuristicLab.Problems.GeneticProgramming/3.3/LawnMower/Problem.cs
r12911 r14029 50 50 } 51 51 52 #region item cloning and persistence 52 53 [StorableConstructor] 53 protected Problem(bool deserializing) 54 : base(deserializing) { 54 protected Problem(bool deserializing) : base(deserializing) { } 55 [StorableHook(HookType.AfterDeserialization)] 56 private void AfterDeserialization() { } 57 58 protected Problem(Problem original, Cloner cloner) : base(original, cloner) { } 59 public override IDeepCloneable Clone(Cloner cloner) { 60 return new Problem(this, cloner); 55 61 } 56 protected Problem(Problem original, Cloner cloner) 57 : base(original, cloner) { 58 } 62 #endregion 63 59 64 public Problem() 60 65 : base() { … … 87 92 } 88 93 89 90 [StorableHook(HookType.AfterDeserialization)]91 private void AfterDeserialization() { }92 93 94 public override double Evaluate(ISymbolicExpressionTree tree, IRandom random) { 94 95 var length = LawnLengthParameter.Value.Value; … … 105 106 return numberOfMowedCells; 106 107 } 107 108 public override IDeepCloneable Clone(Cloner cloner) {109 return new Problem(this, cloner);110 }111 108 } 112 109 }
Note: See TracChangeset
for help on using the changeset viewer.