Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
07/02/12 17:16:21 (12 years ago)
Author:
abeham
Message:

#1855:

  • Added IStorableContent to HungarianAlgorithm, LinearAssignmentProblem, and LAPAssignment (it was only storable, because the result is storable)
  • Added separate AfterDeserialization hook and renamed AttachEventHandlers to RegisterEventHandlers
  • Added cloning of rowNames and columnNames in LAPAssignment
  • Changed the default instance of the LinearAssignmentProblem
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Problems.LinearAssignment/3.3/LAPAssignment.cs

    r8093 r8183  
    3030  [Item("LAP Assignment", "Represents a solution to the LAP.")]
    3131  [StorableClass]
    32   public sealed class LAPAssignment : Item, INotifyPropertyChanged {
     32  public sealed class LAPAssignment : Item, INotifyPropertyChanged, IStorableContent {
     33    public string Filename { get; set; }
    3334
    3435    [Storable]
     
    9394      costs = cloner.Clone(original.costs);
    9495      assignment = cloner.Clone(original.assignment);
     96      rowNames = cloner.Clone(original.rowNames);
     97      columnNames = cloner.Clone(original.columnNames);
    9598      quality = cloner.Clone(original.quality);
    9699    }
     
    117120    }
    118121
    119 
    120122    public event PropertyChangedEventHandler PropertyChanged;
    121123    private void OnPropertyChanged(string propertyName) {
Note: See TracChangeset for help on using the changeset viewer.