Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
07/27/10 14:20:42 (14 years ago)
Author:
cneumuel
Message:

added experiment plugins (#1115)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3.3-HiveMigration/sources/HeuristicLab.Hive/HeuristicLab.Hive.Engine/3.3/Job.cs

    r4107 r4111  
    3030using HeuristicLab.Common;
    3131using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
     32using HeuristicLab.SequentialEngine;
    3233
    3334namespace HeuristicLab.Hive.Engine {
     
    3839  public class Job : IJob {
    3940    [Storable]
     41    private IOperation initialOperation;
     42    public IOperation InitialOperation {
     43      get { return initialOperation; }
     44    }
     45
    4046    private IEngine engine;
    4147    public IEngine Engine {
     
    4551    public Job()
    4652      : base() {
    47      
    4853      engine = new SequentialEngine.SequentialEngine();
    49       //engine.Priority = ThreadPriority.Lowest;
    5054      RegisterEvents();
    5155    }
     
    9397      get {
    9498        //DoubleValue progress = Engine.GlobalScope.GetVariableValue<DoubleData>("Progress", false, false); [chn] not possible in 3.3?
    95 
    9699        return engine.ExecutionState == ExecutionState.Stopped ? 1.0 : 0.0;
    97100      }
     
    111114      throw new NotSupportedException();
    112115    }
    113 
     116   
    114117    public void Start() {
    115118      Engine.Start();
     
    118121    public void Stop() {
    119122      Engine.Stop();
     123    }
     124
     125    public void Prepare(IOperation initialOperation) {
     126      this.initialOperation = initialOperation;
     127      Engine.Prepare(initialOperation);
    120128    }
    121129
Note: See TracChangeset for help on using the changeset viewer.