Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
08/03/09 14:23:54 (15 years ago)
Author:
mkommend
Message:

reintegrated branch new heuristic.modeling database backend (ticket #712)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.CEDMA.Server/3.3/GridExecuter.cs

    r2222 r2223  
    2727using System.Net;
    2828using System.ServiceModel;
    29 using HeuristicLab.CEDMA.DB.Interfaces;
    30 using HeuristicLab.CEDMA.DB;
    3129using System.ServiceModel.Description;
    3230using System.Linq;
     
    3836using System.Threading;
    3937using HeuristicLab.Modeling;
     38using HeuristicLab.Modeling.Database;
    4039
    4140namespace HeuristicLab.CEDMA.Server {
    4241  public class GridExecuter : ExecuterBase {
    4342    private JobManager jobManager;
    44     private Dictionary<AsyncGridResult, IAlgorithm> activeAlgorithms;
     43    private Dictionary<AsyncGridResult, HeuristicLab.Modeling.IAlgorithm> activeAlgorithms;
    4544
    4645    private TimeSpan StartJobInterval {
     
    5655    }
    5756
    58     public GridExecuter(IDispatcher dispatcher, IStore store, IGridServer server)
    59       : base(dispatcher, store) {
     57    public GridExecuter(IDispatcher dispatcher,  IGridServer server, IModelingDatabase databaseService)
     58      : base(dispatcher, databaseService) {
    6059      this.jobManager = new JobManager(server);
    61       activeAlgorithms = new Dictionary<AsyncGridResult, IAlgorithm>();
     60      activeAlgorithms = new Dictionary<AsyncGridResult, HeuristicLab.Modeling.IAlgorithm>();
    6261      jobManager.Reset();
    6362    }
     
    7170            Thread.Sleep(StartJobInterval);
    7271            // get an execution from the dispatcher and execute in grid via job-manager
    73             IAlgorithm algorithm = Dispatcher.GetNextJob();
     72            HeuristicLab.Modeling.IAlgorithm algorithm = Dispatcher.GetNextJob();
    7473            if (algorithm != null) {
    7574              AtomicOperation op = new AtomicOperation(algorithm.Engine.OperatorGraph.InitialOperator, algorithm.Engine.GlobalScope);
     
    9190            if (readyHandleIndex != WaitHandle.WaitTimeout) {
    9291              WaitHandle readyHandle = whArr[readyHandleIndex];
    93               IAlgorithm finishedAlgorithm = null;
     92              HeuristicLab.Modeling.IAlgorithm finishedAlgorithm = null;
    9493              AsyncGridResult finishedResult = null;
    9594              lock (activeAlgorithms) {
     
    138137        string[] retVal = new string[activeAlgorithms.Count];
    139138        int i = 0;
    140         foreach (IAlgorithm a in activeAlgorithms.Values) {
     139        foreach (HeuristicLab.Modeling.IAlgorithm a in activeAlgorithms.Values) {
    141140          retVal[i++] = a.Name + " " + a.Dataset.GetVariableName(a.TargetVariable);
    142141        }
Note: See TracChangeset for help on using the changeset viewer.