Changeset 3739 for trunk/sources/HeuristicLab.Problems.TravelingSalesman
- Timestamp:
- 05/10/10 14:18:22 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Problems.TravelingSalesman/3.3/TravelingSalesmanProblem.cs
r3663 r3739 191 191 BestKnownSolution = new Permutation(PermutationTypes.RelativeUndirected, tourParser.Tour); 192 192 } 193 OnReset(); 193 194 } 194 195 public void ImportFromTSPLIB(string tspFileName, string optimalTourFileName, double bestKnownQuality) { … … 200 201 public event EventHandler SolutionCreatorChanged; 201 202 private void OnSolutionCreatorChanged() { 202 if (SolutionCreatorChanged != null)203 SolutionCreatorChanged(this, EventArgs.Empty);203 EventHandler handler = SolutionCreatorChanged; 204 if (handler != null) handler(this, EventArgs.Empty); 204 205 } 205 206 public event EventHandler EvaluatorChanged; 206 207 private void OnEvaluatorChanged() { 207 if (EvaluatorChanged != null)208 EvaluatorChanged(this, EventArgs.Empty);208 EventHandler handler = EvaluatorChanged; 209 if (handler != null) handler(this, EventArgs.Empty); 209 210 } 210 211 public event EventHandler OperatorsChanged; 211 212 private void OnOperatorsChanged() { 212 if (OperatorsChanged != null) 213 OperatorsChanged(this, EventArgs.Empty); 213 EventHandler handler = OperatorsChanged; 214 if (handler != null) handler(this, EventArgs.Empty); 215 } 216 public event EventHandler Reset; 217 private void OnReset() { 218 EventHandler handler = Reset; 219 if (handler != null) handler(this, EventArgs.Empty); 214 220 } 215 221
Note: See TracChangeset
for help on using the changeset viewer.