Changeset 8971 for branches/RuntimeOptimizer/HeuristicLab.Optimization/3.3
- Timestamp:
- 11/29/12 09:57:15 (12 years ago)
- Location:
- branches/RuntimeOptimizer
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/RuntimeOptimizer
- Property svn:mergeinfo changed
/branches/SlaveShutdown (added) merged: 8944-8945,8949,8951,8953-8954 /trunk/sources (added) merged: 8946-8948,8950,8952,8957,8960,8962-8970
- Property svn:mergeinfo changed
-
branches/RuntimeOptimizer/HeuristicLab.Optimization/3.3/Algorithms/Algorithm.cs
r8738 r8971 134 134 storeAlgorithmInEachRun = false; 135 135 runsCounter = 0; 136 Runs = new RunCollection { AlgorithmName = Name };136 Runs = new RunCollection { OptimizerName = Name }; 137 137 } 138 138 protected Algorithm(string name) … … 142 142 storeAlgorithmInEachRun = false; 143 143 runsCounter = 0; 144 Runs = new RunCollection { AlgorithmName = Name };144 Runs = new RunCollection { OptimizerName = Name }; 145 145 } 146 146 protected Algorithm(string name, ParameterCollection parameters) … … 150 150 storeAlgorithmInEachRun = false; 151 151 runsCounter = 0; 152 Runs = new RunCollection { AlgorithmName = Name };152 Runs = new RunCollection { OptimizerName = Name }; 153 153 } 154 154 protected Algorithm(string name, string description) … … 158 158 storeAlgorithmInEachRun = false; 159 159 runsCounter = 0; 160 Runs = new RunCollection { AlgorithmName = Name };160 Runs = new RunCollection { OptimizerName = Name }; 161 161 } 162 162 protected Algorithm(string name, string description, ParameterCollection parameters) … … 166 166 storeAlgorithmInEachRun = false; 167 167 runsCounter = 0; 168 Runs = new RunCollection { AlgorithmName = Name };168 Runs = new RunCollection { OptimizerName = Name }; 169 169 } 170 170 [StorableConstructor] … … 252 252 protected override void OnNameChanged() { 253 253 base.OnNameChanged(); 254 Runs. AlgorithmName = Name;254 Runs.OptimizerName = Name; 255 255 } 256 256 -
branches/RuntimeOptimizer/HeuristicLab.Optimization/3.3/RunCollection.cs
r8738 r8971 44 44 : base(original, cloner) { 45 45 updateOfRunsInProgress = false; 46 algorithmName = original.algorithmName;46 optimizerName = original.optimizerName; 47 47 48 48 resultNames = new List<string>(original.resultNames); … … 106 106 } 107 107 108 private string algorithmName = string.Empty;109 [Storable] 110 public string AlgorithmName {111 get { return algorithmName; }108 private string optimizerName = string.Empty; 109 [Storable] 110 public string OptimizerName { 111 get { return optimizerName; } 112 112 set { 113 if (value != algorithmName && !string.IsNullOrEmpty(value)) {114 algorithmName = value;115 On AlgorithmNameChanged();113 if (value != optimizerName && !string.IsNullOrEmpty(value)) { 114 optimizerName = value; 115 OnOptimizerNameChanged(); 116 116 } 117 117 } 118 118 } 119 120 // BackwardsCompatibility3.3 121 #region Backwards compatible code, remove with 3.4 122 [Storable(AllowOneWay = true)] 123 private string AlgorithmName { 124 set { optimizerName = value; } 125 } 126 #endregion 119 127 120 128 [StorableHook(HookType.AfterDeserialization)] … … 137 145 } 138 146 139 public event EventHandler AlgorithmNameChanged;140 protected virtual void On AlgorithmNameChanged() {141 var handler = AlgorithmNameChanged;147 public event EventHandler OptimizerNameChanged; 148 protected virtual void OnOptimizerNameChanged() { 149 var handler = OptimizerNameChanged; 142 150 if (handler != null) handler(this, EventArgs.Empty); 143 151 }
Note: See TracChangeset
for help on using the changeset viewer.