Changeset 8692 for trunk/sources/HeuristicLab.Clients.Hive.JobManager
- Timestamp:
- 09/25/12 10:15:59 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Clients.Hive.JobManager/3.3/Views/RefreshableHiveJobView.cs
r8691 r8692 534 534 RunCollection runs = new RunCollection(); 535 535 536 foreach (HiveTask subTask in job.HiveTasks) {537 GetAllRunsFromHiveTask(runs, subTask);536 foreach (HiveTask hiveTask in job.HiveTasks) { 537 TaskUtil.GetAllRunsFromHiveTask(runs, hiveTask); 538 538 } 539 539 return runs; 540 540 } else { 541 541 return null; 542 }543 }544 545 private void GetAllRunsFromHiveTask(RunCollection runs, HiveTask task) {546 foreach (HiveTask subTask in task.ChildHiveTasks) {547 GetAllRunsFromHiveTask(runs, subTask);548 }549 550 if (task.ChildHiveTasks.Count == 0) {551 if (task is OptimizerHiveTask) {552 OptimizerHiveTask ohTask = task as OptimizerHiveTask;553 runs.AddRange(ohTask.ItemTask.Item.Runs);554 }555 542 } 556 543 }
Note: See TracChangeset
for help on using the changeset viewer.