Changeset 3616 for trunk/sources/HeuristicLab.Algorithms.SimulatedAnnealing
- Timestamp:
- 05/05/10 00:48:18 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Algorithms.SimulatedAnnealing/3.3/SimulatedAnnealing.cs
r3376 r3616 221 221 base.Problem_EvaluatorChanged(sender, e); 222 222 } 223 protected override void Problem_VisualizerChanged(object sender, EventArgs e) {224 ParameterizeStochasticOperator(Problem.Visualizer);225 ParameterizeMainLoop();226 if (Problem.Visualizer != null) Problem.Visualizer.VisualizationParameter.ActualNameChanged += new EventHandler(Visualizer_VisualizationParameter_ActualNameChanged);227 base.Problem_VisualizerChanged(sender, e);228 }229 223 protected override void Problem_OperatorsChanged(object sender, EventArgs e) { 230 224 foreach (IOperator op in Problem.Operators) ParameterizeStochasticOperator(op); … … 260 254 ParameterizeMoveEvaluators(); 261 255 ParameterizeMoveMakers(); 262 }263 private void Visualizer_VisualizationParameter_ActualNameChanged(object sender, EventArgs e) {264 ParameterizeMainLoop();265 256 } 266 257 #endregion … … 343 334 if (MoveEvaluator != null) 344 335 MainLoop.MoveQualityParameter.ActualName = MoveEvaluator.MoveQualityParameter.ActualName; 345 MainLoop.VisualizerParameter.ActualName = Problem.VisualizerParameter.Name;346 if (Problem.Visualizer != null)347 MainLoop.VisualizationParameter.ActualName = Problem.Visualizer.VisualizationParameter.ActualName;348 336 } 349 337 private void ParameterizeStochasticOperator(IOperator op) {
Note: See TracChangeset
for help on using the changeset viewer.