Changeset 4111 for branches/3.3-HiveMigration/sources/HeuristicLab.Hive/HeuristicLab.Hive.Engine/3.3/Job.cs
- Timestamp:
- 07/27/10 14:20:42 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.3-HiveMigration/sources/HeuristicLab.Hive/HeuristicLab.Hive.Engine/3.3/Job.cs
r4107 r4111 30 30 using HeuristicLab.Common; 31 31 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 32 using HeuristicLab.SequentialEngine; 32 33 33 34 namespace HeuristicLab.Hive.Engine { … … 38 39 public class Job : IJob { 39 40 [Storable] 41 private IOperation initialOperation; 42 public IOperation InitialOperation { 43 get { return initialOperation; } 44 } 45 40 46 private IEngine engine; 41 47 public IEngine Engine { … … 45 51 public Job() 46 52 : base() { 47 48 53 engine = new SequentialEngine.SequentialEngine(); 49 //engine.Priority = ThreadPriority.Lowest;50 54 RegisterEvents(); 51 55 } … … 93 97 get { 94 98 //DoubleValue progress = Engine.GlobalScope.GetVariableValue<DoubleData>("Progress", false, false); [chn] not possible in 3.3? 95 96 99 return engine.ExecutionState == ExecutionState.Stopped ? 1.0 : 0.0; 97 100 } … … 111 114 throw new NotSupportedException(); 112 115 } 113 116 114 117 public void Start() { 115 118 Engine.Start(); … … 118 121 public void Stop() { 119 122 Engine.Stop(); 123 } 124 125 public void Prepare(IOperation initialOperation) { 126 this.initialOperation = initialOperation; 127 Engine.Prepare(initialOperation); 120 128 } 121 129
Note: See TracChangeset
for help on using the changeset viewer.