Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
11/12/13 20:35:30 (11 years ago)
Author:
ascheibe
Message:

#2117

  • fixed drag and drop check in the RefreshableHiveJobView to be more generic
  • fixed TaskDownloader to generate the correct HiveTasks when downloading tasks
  • fixed some variable names (job => task) which were forgotten
  • the IsParallelizable property of a task can now be set (e.g. if a task gets parallelized, the generated child tasks should sometimes not be able to get further parallelized)
Location:
trunk/sources/HeuristicLab.Clients.Hive/3.3/Tasks
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Clients.Hive/3.3/Tasks/EngineTask.cs

    r9819 r10130  
    2929  [StorableClass]
    3030  public class EngineTask : ItemTask {
     31    public override HiveTask CreateHiveTask() {
     32      //only used when deserializing, so no problem with parentscope
     33      return new EngineHiveTask(this, null);
     34    }
     35
    3136    [Storable]
    3237    protected IOperation initialOperation;
     
    5257    public EngineTask(IOperation initialOperation, IEngine engine) {
    5358      this.initialOperation = initialOperation;
     59      this.Item = engine;
     60    }
     61
     62    public EngineTask(IEngine engine) {
    5463      this.Item = engine;
    5564    }
  • trunk/sources/HeuristicLab.Clients.Hive/3.3/Tasks/ItemTask.cs

    r9456 r10130  
    3131  [StorableClass]
    3232  public abstract class ItemTask : NamedItem, ITask {
     33    public virtual HiveTask CreateHiveTask() {
     34      return new HiveTask(this, true);
     35    }
     36
    3337    public virtual bool IsParallelizable {
    3438      get { return true; }
     39      set { }
    3540    }
    3641
  • trunk/sources/HeuristicLab.Clients.Hive/3.3/Tasks/OptimizerTask.cs

    r9819 r10130  
    3030  [StorableClass]
    3131  public class OptimizerTask : ItemTask {
     32    public override HiveTask CreateHiveTask() {
     33      return new OptimizerHiveTask(this);
     34    }
     35
    3236    public override bool IsParallelizable {
    3337      get { return this.Item is Experiment || this.Item is BatchRun; }
Note: See TracChangeset for help on using the changeset viewer.