- 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.Optimization/3.3/Algorithms/Algorithm.cs
r12012 r13656 37 37 [StorableClass] 38 38 public abstract class Algorithm : ParameterizedNamedItem, IAlgorithm { 39 public static new Image StaticItemImage { 40 get { return HeuristicLab.Common.Resources.VSImageLibrary.Event; } 41 } 42 public override Image ItemImage { 43 get { 39 public static new Image StaticItemImage 40 { 41 get { return new Bitmap(25, 25); } 42 } 43 public override Image ItemImage 44 { 45 get 46 { 44 47 if (ExecutionState == ExecutionState.Prepared) return HeuristicLab.Common.Resources.VSImageLibrary.ExecutablePrepared; 45 48 else if (ExecutionState == ExecutionState.Started) return HeuristicLab.Common.Resources.VSImageLibrary.ExecutableStarted; … … 52 55 [Storable] 53 56 private ExecutionState executionState; 54 public ExecutionState ExecutionState { 57 public ExecutionState ExecutionState 58 { 55 59 get { return executionState; } 56 private set { 60 private set 61 { 57 62 if (executionState != value) { 58 63 executionState = value; … … 65 70 [Storable] 66 71 private TimeSpan executionTime; 67 public TimeSpan ExecutionTime { 72 public TimeSpan ExecutionTime 73 { 68 74 get { return executionTime; } 69 protected set { 75 protected set 76 { 70 77 executionTime = value; 71 78 OnExecutionTimeChanged(); … … 73 80 } 74 81 75 public virtual Type ProblemType { 82 public virtual Type ProblemType 83 { 76 84 get { return typeof(IProblem); } 77 85 } … … 79 87 [Storable] 80 88 private IProblem problem; 81 public IProblem Problem { 89 public IProblem Problem 90 { 82 91 get { return problem; } 83 set { 92 set 93 { 84 94 if (problem != value) { 85 95 if ((value != null) && !ProblemType.IsInstanceOfType(value)) throw new ArgumentException("Invalid problem type."); … … 97 107 [Storable] 98 108 private bool storeAlgorithmInEachRun; 99 public bool StoreAlgorithmInEachRun { 109 public bool StoreAlgorithmInEachRun 110 { 100 111 get { return storeAlgorithmInEachRun; } 101 set { 112 set 113 { 102 114 if (storeAlgorithmInEachRun != value) { 103 115 storeAlgorithmInEachRun = value; … … 112 124 [Storable] 113 125 private RunCollection runs; 114 public RunCollection Runs { 126 public RunCollection Runs 127 { 115 128 get { return runs; } 116 protected set { 129 protected set 130 { 117 131 if (value == null) throw new ArgumentNullException(); 118 132 if (runs != value) { … … 124 138 } 125 139 126 public virtual IEnumerable<IOptimizer> NestedOptimizers { 140 public virtual IEnumerable<IOptimizer> NestedOptimizers 141 { 127 142 get { return Enumerable.Empty<IOptimizer>(); } 128 143 }
Note: See TracChangeset
for help on using the changeset viewer.