Changeset 47 for trunk/sources
- Timestamp:
- 03/05/08 23:52:30 (17 years ago)
- Location:
- trunk/sources
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Core/EngineBase.cs
r2 r47 103 103 myCanceled = false; 104 104 myRunning = false; 105 OperatorGraph.Reset();106 105 GlobalScope.Clear(); 107 106 ExecutionTime = new TimeSpan(); -
trunk/sources/HeuristicLab.Core/Interfaces/IOperator.cs
r2 r47 68 68 IOperation Execute(IScope scope); 69 69 void Abort(); 70 void Reset();71 70 72 71 event EventHandler NameChanged; … … 78 77 event EventHandler<VariableEventArgs> VariableAdded; 79 78 event EventHandler<VariableEventArgs> VariableRemoved; 80 event EventHandler Initialized;81 79 event EventHandler Executed; 82 80 } -
trunk/sources/HeuristicLab.Core/Interfaces/IOperatorGraph.cs
r2 r47 33 33 void RemoveOperator(Guid guid); 34 34 IOperator GetOperator(Guid guid); 35 void Reset();36 35 void Clear(); 37 36 -
trunk/sources/HeuristicLab.Core/OperatorBase.cs
r2 r47 374 374 myCanceled = true; 375 375 } 376 public virtual void Reset() {377 OnInitialized();378 }379 376 380 377 public virtual IOperation Apply(IScope scope) { … … 423 420 if (VariableRemoved != null) 424 421 VariableRemoved(this, new VariableEventArgs(variable)); 425 }426 public event EventHandler Initialized;427 protected virtual void OnInitialized() {428 if (Initialized != null) {429 Initialized(this, new EventArgs());430 }431 422 } 432 423 public event EventHandler Executed; -
trunk/sources/HeuristicLab.Core/OperatorGraph.cs
r2 r47 94 94 return null; 95 95 } 96 public void Reset() {97 foreach (IOperator op in Operators)98 op.Reset();99 }100 96 public void Clear() { 101 97 Guid[] guids = new Guid[Operators.Count]; -
trunk/sources/HeuristicLab.Operators/CombinedOperator.cs
r40 r47 86 86 } 87 87 } 88 public override void Reset() {89 OperatorGraph.Reset();90 base.Reset();91 }92 88 93 89 public override IView CreateView() {
Note: See TracChangeset
for help on using the changeset viewer.