- Timestamp:
- 03/07/16 10:18:05 (9 years ago)
- Location:
- branches/WebJobManager
- Files:
-
- 1 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
branches/WebJobManager/HeuristicLab.Clients.Hive/3.3/HiveTasks/HiveTask.cs
r12621 r13656 41 41 protected ReaderWriterLockSlim itemTaskLock = new ReaderWriterLockSlim(LockRecursionPolicy.SupportsRecursion); 42 42 43 public static new Image StaticItemImage { 44 get { return HeuristicLab.Common.Resources.VSImageLibrary.Event; }45 }46 public override Image ItemImage {47 get{43 44 public override Image ItemImage 45 { 46 get 47 { 48 48 if (task.Id == Guid.Empty) { // not yet uploaded 49 49 return HeuristicLab.Common.Resources.VSImageLibrary.Event; … … 63 63 [Storable] 64 64 protected Task task; 65 public Task Task { 65 public Task Task 66 { 66 67 get { return task; } 67 set { 68 set 69 { 68 70 if (task != value) { 69 71 DeregisterTaskEvents(); … … 80 82 [Storable] 81 83 protected ItemTask itemTask; 82 public ItemTask ItemTask { 84 public ItemTask ItemTask 85 { 83 86 get { return itemTask; } 84 set { 87 set 88 { 85 89 if (itemTask != null && syncTasksWithOptimizers) { 86 90 childHiveTasksLock.EnterWriteLock(); … … 108 112 [Storable] 109 113 private bool isFinishedTaskDownloaded = false; 110 public bool IsFinishedTaskDownloaded { 114 public bool IsFinishedTaskDownloaded 115 { 111 116 get { return isFinishedTaskDownloaded; } 112 set { 117 set 118 { 113 119 if (value != isFinishedTaskDownloaded) { 114 120 this.isFinishedTaskDownloaded = value; … … 122 128 // if true, all control buttons should be enabled. otherwise disabled 123 129 private bool isControllable = true; 124 public bool IsControllable { 130 public bool IsControllable 131 { 125 132 get { return isControllable; } 126 set { 133 set 134 { 127 135 if (value != isControllable) { 128 136 isControllable = value; … … 143 151 [Storable] 144 152 protected ItemList<HiveTask> childHiveTasks; 145 public virtual ReadOnlyItemList<HiveTask> ChildHiveTasks { 146 get { 153 public virtual ReadOnlyItemList<HiveTask> ChildHiveTasks 154 { 155 get 156 { 147 157 childHiveTasksLock.EnterReadLock(); 148 158 try { … … 156 166 protected bool syncTasksWithOptimizers = true; 157 167 158 public StateLogList StateLog { 159 get { 168 public StateLogList StateLog 169 { 170 get 171 { 160 172 var list = new StateLogList(this.task.StateLog); 161 173 list.ForEach(s => { s.TaskName = itemTask.Name; }); … … 164 176 } 165 177 166 public StateLogListList ChildStateLogList { 178 public StateLogListList ChildStateLogList 179 { 167 180 get { return new StateLogListList(this.childHiveTasks.Select(x => x.StateLog)); } 168 181 } … … 515 528 } 516 529 517 public ICollection<IItemTreeNodeAction<HiveTask>> Actions { 518 get { 530 public ICollection<IItemTreeNodeAction<HiveTask>> Actions 531 { 532 get 533 { 519 534 return new List<IItemTreeNodeAction<HiveTask>>(); 520 535 } … … 544 559 public class HiveTask<T> : HiveTask where T : ItemTask { 545 560 546 public new T ItemTask { 561 public new T ItemTask 562 { 547 563 get { return (T)base.ItemTask; } 548 564 set { base.ItemTask = value; }
Note: See TracChangeset
for help on using the changeset viewer.