Changeset 5912 for trunk/tools/Templates/HeuristicLabAlgorithmTemplate
- Timestamp:
- 03/31/11 17:10:15 (14 years ago)
- Location:
- trunk/tools/Templates/HeuristicLabAlgorithmTemplate
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/Templates/HeuristicLabAlgorithmTemplate/DefaultAlgorithm.cs
r4187 r5912 58 58 [StorableConstructor] 59 59 private $safeitemname$(bool deserializing) : base(deserializing) { } 60 private $safeitemname$($safeitemname$ original, Cloner cloner) 61 : base(original, cloner) { 62 // TODO: clone your private fields here 63 AttachEventHandlers(); 64 } 60 65 public $safeitemname$() 61 66 : base() { … … 70 75 randomCreator.SetSeedRandomlyParameter.ActualName = SetSeedRandomlyParameter.Name; 71 76 randomCreator.SetSeedRandomlyParameter.Value = null; 72 randomCreator.Successor = null; // TODO:77 randomCreator.Successor = null; 73 78 74 79 // TODO: Create further operators and build operator graph … … 79 84 80 85 public override IDeepCloneable Clone(Cloner cloner) { 81 $safeitemname$ clone = ($safeitemname$)base.Clone(cloner); 82 // TODO: IMPORTANT! Clone necessary private fields here 83 clone.AttachEventHandlers(); 84 return clone; 86 return new $safeitemname$(this, cloner); 85 87 } 86 88
Note: See TracChangeset
for help on using the changeset viewer.