Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
10/06/10 03:27:57 (14 years ago)
Author:
swagner
Message:

Worked on OKB (#1174)

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  
    2727using HeuristicLab.Common;
    2828using HeuristicLab.Core;
     29using HeuristicLab.Optimization;
    2930using HeuristicLab.PluginInfrastructure;
    3031
     
    157158      }
    158159    }
     160    public bool Store(long algorithmId, long probleId, Run run) {
     161      return true;
     162    }
    159163    #endregion
    160164
  • branches/OKB/HeuristicLab.Clients.OKB-3.3/OKBExperiment.cs

    r4558 r4559  
    277277        Algorithm.Started += new EventHandler(algorithm_Started);
    278278        Algorithm.Stopped += new EventHandler(algorithm_Stopped);
     279        Algorithm.Runs.ItemsAdded += new Collections.CollectionItemsChangedEventHandler<IRun>(Runs_ItemsAdded);
    279280      }
    280281    }
     
    289290        Algorithm.Started -= new EventHandler(algorithm_Started);
    290291        Algorithm.Stopped -= new EventHandler(algorithm_Stopped);
     292        Algorithm.Runs.ItemsAdded -= new Collections.CollectionItemsChangedEventHandler<IRun>(Runs_ItemsAdded);
    291293      }
    292294    }
     
    314316    private void algorithm_Stopped(object sender, EventArgs e) {
    315317      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      }
    316327    }
    317328    #endregion
Note: See TracChangeset for help on using the changeset viewer.