Free cookie consent management tool by TermsFeed Policy Generator

Changeset 9819 for trunk


Ignore:
Timestamp:
07/30/13 17:35:04 (11 years ago)
Author:
ascheibe
Message:

#1099 adapted Hive NamedItems

Location:
trunk/sources/HeuristicLab.Clients.Hive/3.3
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Clients.Hive/3.3/HiveTasks/HiveTask.cs

    r9456 r9819  
    172172    protected HiveTask(bool deserializing) { }
    173173
    174     public HiveTask() {
     174    public HiveTask()
     175      : base() {
     176      Name = "Hive Task";
    175177      this.Task = new Task() { CoresNeeded = 1, MemoryNeeded = 128 };
    176178      task.State = TaskState.Offline;
  • trunk/sources/HeuristicLab.Clients.Hive/3.3/Tasks/EngineTask.cs

    r9456 r9819  
    5050
    5151    #region constructors and cloning
    52     public EngineTask() { }
    5352    public EngineTask(IOperation initialOperation, IEngine engine) {
    5453      this.initialOperation = initialOperation;
     
    144143
    145144    public override string Name {
    146       get { return Item != null ? Item.ToString() : null; }
     145      get { return Item != null ? Item.ToString() : "Engine Task"; }
    147146      set { throw new NotSupportedException(); }
    148147    }
     
    153152
    154153    public override string ItemName {
    155       get { return "EngineTask"; }
     154      get { return "Engine Task"; }
    156155    }
    157156  }
  • trunk/sources/HeuristicLab.Clients.Hive/3.3/Tasks/OptimizerTask.cs

    r9456 r9819  
    4646    }
    4747
    48     public OptimizerTask() : base() { }
    49     public OptimizerTask(IOptimizer optimizer)
    50       : this() {
     48    public OptimizerTask(IOptimizer optimizer) {
    5149      this.Item = optimizer;
    5250
     
    210208      get {
    211209        if (Item == null)
    212           return string.Empty;
     210          return "Optimizer Task";
    213211        else
    214212          return Item.Name;
Note: See TracChangeset for help on using the changeset viewer.