- Timestamp:
- 03/07/16 10:18:05 (8 years ago)
- Location:
- branches/WebJobManager
- Files:
-
- 1 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
branches/WebJobManager/HeuristicLab.Optimization/3.3/MetaOptimizers/BatchRun.cs
r12504 r13656 41 41 public string Filename { get; set; } 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 public static new Image StaticItemImage 44 { 45 get { return new Bitmap(25, 25); } 46 } 47 public override Image ItemImage 48 { 49 get 50 { 48 51 if (ExecutionState == ExecutionState.Prepared) return HeuristicLab.Common.Resources.VSImageLibrary.BatchRunPrepared; 49 52 else if (ExecutionState == ExecutionState.Started) return HeuristicLab.Common.Resources.VSImageLibrary.BatchRunStarted; … … 56 59 [Storable] 57 60 private ExecutionState executionState; 58 public ExecutionState ExecutionState { 61 public ExecutionState ExecutionState 62 { 59 63 get { return executionState; } 60 private set { 64 private set 65 { 61 66 if (executionState != value) { 62 67 executionState = value; … … 69 74 [Storable] 70 75 private TimeSpan executionTime; 71 public TimeSpan ExecutionTime { 72 get { 76 public TimeSpan ExecutionTime 77 { 78 get 79 { 73 80 if ((Optimizer != null) && (Optimizer.ExecutionState != ExecutionState.Stopped)) 74 81 return executionTime + Optimizer.ExecutionTime; … … 76 83 return executionTime; 77 84 } 78 private set { 85 private set 86 { 79 87 executionTime = value; 80 88 OnExecutionTimeChanged(); … … 87 95 [Storable] 88 96 private IOptimizer optimizer; 89 public IOptimizer Optimizer { 97 public IOptimizer Optimizer 98 { 90 99 get { return optimizer; } 91 set { 100 set 101 { 92 102 if (optimizer != value) { 93 103 if (optimizer != null) { … … 110 120 #region Backwards compatible code (remove with 3.4) 111 121 [Storable(AllowOneWay = true)] 112 private IAlgorithm algorithm { 122 private IAlgorithm algorithm 123 { 113 124 set { optimizer = value; } 114 125 } … … 117 128 [Storable] 118 129 private int repetitions; 119 public int Repetitions { 130 public int Repetitions 131 { 120 132 get { return repetitions; } 121 set { 133 set 134 { 122 135 if (repetitions != value) { 123 136 repetitions = value; … … 130 143 [Storable] 131 144 private int repetitionsCounter; 132 public int RepetitionsCounter { 145 public int RepetitionsCounter 146 { 133 147 get { return repetitionsCounter; } 134 private set { 148 private set 149 { 135 150 if (value != repetitionsCounter) { 136 151 repetitionsCounter = value; … … 142 157 [Storable] 143 158 private RunCollection runs; 144 public RunCollection Runs { 159 public RunCollection Runs 160 { 145 161 get { return runs; } 146 private set { 162 private set 163 { 147 164 if (value == null) throw new ArgumentNullException(); 148 165 if (runs != value) { … … 154 171 } 155 172 156 public IEnumerable<IOptimizer> NestedOptimizers { 157 get { 173 public IEnumerable<IOptimizer> NestedOptimizers 174 { 175 get 176 { 158 177 if (Optimizer == null) yield break; 159 178
Note: See TracChangeset
for help on using the changeset viewer.