Changeset 4713 for branches/CloningRefactoring
- Timestamp:
- 11/03/10 02:04:09 (14 years ago)
- Location:
- branches/CloningRefactoring/HeuristicLab.Core/3.3
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/CloningRefactoring/HeuristicLab.Core/3.3/Engine.cs
r4668 r4713 58 58 if (original.ExecutionState == ExecutionState.Started) throw new InvalidOperationException(string.Format("Clone not allowed in execution state \"{0}\".", ExecutionState)); 59 59 log = cloner.Clone(original.log); 60 executionStack = new Stack<IOperation>(); 60 61 IOperation[] contexts = original.executionStack.ToArray(); 61 62 for (int i = contexts.Length - 1; i >= 0; i--) … … 63 64 pausePending = original.pausePending; 64 65 stopPending = original.stopPending; 66 timer = new System.Timers.Timer(100); 67 timer.AutoReset = true; 68 timer.Elapsed += new System.Timers.ElapsedEventHandler(timer_Elapsed); 65 69 } 66 70 protected Engine() -
branches/CloningRefactoring/HeuristicLab.Core/3.3/Scope.cs
r4668 r4713 64 64 : base(original, cloner) { 65 65 if (original.variables.Count > 0) variables = cloner.Clone(original.variables); 66 else variables = new VariableCollection(); 66 67 if (original.subScopes.Count > 0) { 67 68 subScopes = cloner.Clone(original.subScopes); … … 69 70 child.Parent = this; 70 71 RegisterSubScopesEvents(); 71 } 72 } else subScopes = new ScopeList(); 72 73 } 73 74 /// <summary>
Note: See TracChangeset
for help on using the changeset viewer.