Changeset 15973 for branches/2522_RefactorPluginInfrastructure/HeuristicLab.Clients.Hive/3.3/HiveTasks
- Timestamp:
- 06/28/18 11:13:37 (7 years ago)
- Location:
- branches/2522_RefactorPluginInfrastructure
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2522_RefactorPluginInfrastructure
- Property svn:ignore
-
old new 24 24 protoc.exe 25 25 obj 26 .vs
-
- Property svn:mergeinfo changed
- Property svn:ignore
-
branches/2522_RefactorPluginInfrastructure/HeuristicLab.Clients.Hive/3.3/HiveTasks/EngineHiveTask.cs
r12621 r15973 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 5Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2018 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. -
branches/2522_RefactorPluginInfrastructure/HeuristicLab.Clients.Hive/3.3/HiveTasks/HiveTask.cs
r12621 r15973 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 5Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2018 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. -
branches/2522_RefactorPluginInfrastructure/HeuristicLab.Clients.Hive/3.3/HiveTasks/OptimizerHiveTask.cs
r12621 r15973 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 5Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2018 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. … … 316 316 public override void AddChildHiveTask(HiveTask hiveTask) { 317 317 base.AddChildHiveTask(hiveTask); 318 var optimizerHive Job= (OptimizerHiveTask)hiveTask;318 var optimizerHiveTask = (OptimizerHiveTask)hiveTask; 319 319 syncTasksWithOptimizers = false; 320 if (this.ItemTask != null && optimizerHiveJob.ItemTask != null) { 321 // if task is in state Paused, it has to preserve its ResultCollection, which is cleared when a optimizer is added to an experiment 322 OptimizerTask optimizerJobClone = null; 323 if (optimizerHiveJob.Task.State == TaskState.Paused) { 324 optimizerJobClone = (OptimizerTask)optimizerHiveJob.ItemTask.Clone(); 325 } 320 if (this.ItemTask != null && optimizerHiveTask.ItemTask != null) { 321 OptimizerTask optimizerTaskClone = (OptimizerTask)optimizerHiveTask.ItemTask.Clone(); 326 322 327 323 if (this.ItemTask.Item is Optimization.Experiment) { 328 if (!this.ItemTask.OptimizerAsExperiment.Optimizers.Contains(optimizerHive Job.ItemTask.Item)) {329 UpdateOptimizerInExperiment(this.ItemTask.OptimizerAsExperiment, optimizerHive Job.ItemTask);324 if (!this.ItemTask.OptimizerAsExperiment.Optimizers.Contains(optimizerHiveTask.ItemTask.Item)) { 325 UpdateOptimizerInExperiment(this.ItemTask.OptimizerAsExperiment, optimizerHiveTask.ItemTask); 330 326 } 331 327 } else if (this.ItemTask.Item is Optimization.BatchRun) { 332 UpdateOptimizerInBatchRun(this.ItemTask.OptimizerAsBatchRun, optimizerHive Job.ItemTask);333 } 334 335 if (optimizerHiveJob.Task.State == TaskState.Paused) {336 optimizerHiveJob.ItemTask = optimizerJobClone;337 }328 UpdateOptimizerInBatchRun(this.ItemTask.OptimizerAsBatchRun, optimizerHiveTask.ItemTask); 329 } 330 331 optimizerHiveTask.syncTasksWithOptimizers = false; 332 optimizerHiveTask.ItemTask = optimizerTaskClone; 333 optimizerHiveTask.syncTasksWithOptimizers = true; 338 334 } 339 335 syncTasksWithOptimizers = true;
Note: See TracChangeset
for help on using the changeset viewer.