Changeset 11203 for branches/HiveStatistics/sources/HeuristicLab.Clients.Hive/3.3/HiveTasks/HiveTask.cs
- Timestamp:
- 07/18/14 12:35:00 (10 years ago)
- Location:
- branches/HiveStatistics/sources
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HiveStatistics/sources
- Property svn:ignore
-
old new 8 8 FxCopResults.txt 9 9 Google.ProtocolBuffers-0.9.1.dll 10 Google.ProtocolBuffers-2.4.1.473.dll11 10 HeuristicLab 3.3.5.1.ReSharper.user 12 11 HeuristicLab 3.3.6.0.ReSharper.user 13 12 HeuristicLab.4.5.resharper.user 14 13 HeuristicLab.ExtLibs.6.0.ReSharper.user 15 HeuristicLab.Scripting.Development16 14 HeuristicLab.resharper.user 17 15 ProtoGen.exe … … 19 17 _ReSharper.HeuristicLab 20 18 _ReSharper.HeuristicLab 3.3 21 _ReSharper.HeuristicLab 3.3 Tests22 19 _ReSharper.HeuristicLab.ExtLibs 23 20 bin 24 21 protoc.exe 22 _ReSharper.HeuristicLab 3.3 Tests 23 Google.ProtocolBuffers-2.4.1.473.dll
-
- Property svn:mergeinfo changed
- Property svn:ignore
-
branches/HiveStatistics/sources/HeuristicLab.Clients.Hive/3.3/HiveTasks/HiveTask.cs
r11202 r11203 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 4Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2012 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. … … 172 172 protected HiveTask(bool deserializing) { } 173 173 174 public HiveTask() 175 : base() { 176 Name = "Hive Task"; 174 public HiveTask() { 177 175 this.Task = new Task() { CoresNeeded = 1, MemoryNeeded = 128 }; 178 176 task.State = TaskState.Offline; … … 182 180 } 183 181 184 public HiveTask(ItemTask item Task, bool autoCreateChildHiveTasks)182 public HiveTask(ItemTask itemJob, bool autoCreateChildHiveJobs) 185 183 : this() { 184 this.syncTasksWithOptimizers = autoCreateChildHiveJobs; 185 this.ItemTask = itemJob; 186 this.syncTasksWithOptimizers = true; 187 } 188 189 public HiveTask(Task job, TaskData taskData, bool autoCreateChildHiveTasks) { 186 190 this.syncTasksWithOptimizers = autoCreateChildHiveTasks; 187 this.ItemTask = itemTask; 188 this.syncTasksWithOptimizers = true; 189 } 190 191 public HiveTask(Task task, TaskData taskData, bool autoCreateChildHiveTasks) { 192 this.syncTasksWithOptimizers = autoCreateChildHiveTasks; 193 this.Task = task; 191 this.Task = job; 194 192 try { 195 193 this.ItemTask = PersistenceUtil.Deserialize<ItemTask>(taskData.Data); … … 545 543 public new T ItemTask { 546 544 get { return (T)base.ItemTask; } 547 set { base.ItemTask = value; }545 internal set { base.ItemTask = value; } 548 546 } 549 547 … … 552 550 [StorableConstructor] 553 551 protected HiveTask(bool deserializing) { } 554 public HiveTask(T item Task) : base(itemTask, true) { }552 public HiveTask(T itemJob) : base(itemJob, true) { } 555 553 protected HiveTask(HiveTask<T> original, Cloner cloner) 556 554 : base(original, cloner) {
Note: See TracChangeset
for help on using the changeset viewer.