Changeset 8962 for trunk/sources/HeuristicLab.Optimization
- Timestamp:
- 11/28/12 11:16:11 (12 years ago)
- Location:
- trunk/sources/HeuristicLab.Optimization/3.3
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Optimization/3.3/Algorithms/Algorithm.cs
r8738 r8962 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 -
trunk/sources/HeuristicLab.Optimization/3.3/BatchRun.cs
r8738 r8962 175 175 repetitions = 10; 176 176 repetitionsCounter = 0; 177 Runs = new RunCollection { AlgorithmName = Name };177 Runs = new RunCollection { OptimizerName = Name }; 178 178 } 179 179 public BatchRun(string name) … … 185 185 repetitions = 10; 186 186 repetitionsCounter = 0; 187 Runs = new RunCollection { AlgorithmName = Name };187 Runs = new RunCollection { OptimizerName = Name }; 188 188 } 189 189 public BatchRun(string name, string description) … … 194 194 repetitions = 10; 195 195 repetitionsCounter = 0; 196 Runs = new RunCollection { AlgorithmName = Name };196 Runs = new RunCollection { OptimizerName = Name }; 197 197 } 198 198 [StorableConstructor] … … 280 280 protected override void OnNameChanged() { 281 281 base.OnNameChanged(); 282 runs. AlgorithmName = Name;282 runs.OptimizerName = Name; 283 283 } 284 284 -
trunk/sources/HeuristicLab.Optimization/3.3/Experiment.cs
r8738 r8962 117 117 executionTime = TimeSpan.Zero; 118 118 optimizers = new OptimizerList(); 119 Runs = new RunCollection { AlgorithmName = Name };119 Runs = new RunCollection { OptimizerName = Name }; 120 120 Initialize(); 121 121 } … … 126 126 executionTime = TimeSpan.Zero; 127 127 optimizers = new OptimizerList(); 128 Runs = new RunCollection { AlgorithmName = Name };128 Runs = new RunCollection { OptimizerName = Name }; 129 129 Initialize(); 130 130 } … … 134 134 executionTime = TimeSpan.Zero; 135 135 optimizers = new OptimizerList(); 136 Runs = new RunCollection { AlgorithmName = Name };136 Runs = new RunCollection { OptimizerName = Name }; 137 137 Initialize(); 138 138 } … … 232 232 protected override void OnNameChanged() { 233 233 base.OnNameChanged(); 234 Runs. AlgorithmName = Name;234 Runs.OptimizerName = Name; 235 235 } 236 236 -
trunk/sources/HeuristicLab.Optimization/3.3/RunCollection.cs
r8738 r8962 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 } 119 120 [Storable(AllowOneWay = true)] 121 private string AlgorithmName { 122 set { optimizerName = value; } 118 123 } 119 124 … … 137 142 } 138 143 139 public event EventHandler AlgorithmNameChanged;140 protected virtual void On AlgorithmNameChanged() {141 var handler = AlgorithmNameChanged;144 public event EventHandler OptimizerNameChanged; 145 protected virtual void OnOptimizerNameChanged() { 146 var handler = OptimizerNameChanged; 142 147 if (handler != null) handler(this, EventArgs.Empty); 143 148 }
Note: See TracChangeset
for help on using the changeset viewer.