Changeset 4559 for branches/OKB/HeuristicLab.Clients.OKB-3.3
- Timestamp:
- 10/06/10 03:27:57 (14 years ago)
- Location:
- branches/OKB/HeuristicLab.Clients.OKB-3.3
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/OKB/HeuristicLab.Clients.OKB-3.3/OKBClient.cs
r4549 r4559 27 27 using HeuristicLab.Common; 28 28 using HeuristicLab.Core; 29 using HeuristicLab.Optimization; 29 30 using HeuristicLab.PluginInfrastructure; 30 31 … … 157 158 } 158 159 } 160 public bool Store(long algorithmId, long probleId, Run run) { 161 return true; 162 } 159 163 #endregion 160 164 -
branches/OKB/HeuristicLab.Clients.OKB-3.3/OKBExperiment.cs
r4558 r4559 277 277 Algorithm.Started += new EventHandler(algorithm_Started); 278 278 Algorithm.Stopped += new EventHandler(algorithm_Stopped); 279 Algorithm.Runs.ItemsAdded += new Collections.CollectionItemsChangedEventHandler<IRun>(Runs_ItemsAdded); 279 280 } 280 281 } … … 289 290 Algorithm.Started -= new EventHandler(algorithm_Started); 290 291 Algorithm.Stopped -= new EventHandler(algorithm_Stopped); 292 Algorithm.Runs.ItemsAdded -= new Collections.CollectionItemsChangedEventHandler<IRun>(Runs_ItemsAdded); 291 293 } 292 294 } … … 314 316 private void algorithm_Stopped(object sender, EventArgs e) { 315 317 OnStopped(); 318 } 319 private void Runs_ItemsAdded(object sender, Collections.CollectionItemsChangedEventArgs<IRun> e) { 320 try { 321 foreach (Run run in e.Items) 322 OKBClient.Instance.Store(AlgorithmId, ProblemId, run); 323 } 324 catch (Exception ex) { 325 OnExceptionOccurred(ex); 326 } 316 327 } 317 328 #endregion
Note: See TracChangeset
for help on using the changeset viewer.