- Timestamp:
- 07/02/12 17:16:21 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Problems.LinearAssignment/3.3/HungarianAlgorithm.cs
r8124 r8183 37 37 [Creatable("Algorithms")] 38 38 [StorableClass] 39 public sealed class HungarianAlgorithm : EngineAlgorithm { 39 public sealed class HungarianAlgorithm : EngineAlgorithm, IStorableContent { 40 public string Filename { get; set; } 41 40 42 #region Problem Properties 41 43 public override Type ProblemType { … … 68 70 private HungarianAlgorithm(HungarianAlgorithm original, Cloner cloner) 69 71 : base(original, cloner) { 70 AttachEventHandlers();72 RegisterEventHandlers(); 71 73 } 72 74 public HungarianAlgorithm() … … 83 85 84 86 UpdateAnalyzers(); 85 AttachEventHandlers();87 RegisterEventHandlers(); 86 88 87 89 Problem = new LinearAssignmentProblem(); … … 121 123 #region Helpers 122 124 [StorableHook(HookType.AfterDeserialization)] 123 private void AttachEventHandlers() { 125 private void AfterDeserialization() { 126 RegisterEventHandlers(); 127 } 128 129 private void RegisterEventHandlers() { 124 130 if (Problem != null) { 125 131 Problem.SolutionCreatorChanged += new EventHandler(Problem_SolutionCreatorChanged);
Note: See TracChangeset
for help on using the changeset viewer.