Changeset 8331 for branches/ScatterSearch (trunk integration)/HeuristicLab.Problems.LinearAssignment/3.3/LAPAssignment.cs
- Timestamp:
- 07/26/12 09:51:13 (12 years ago)
- Location:
- branches/ScatterSearch (trunk integration)
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/ScatterSearch (trunk integration)
- Property svn:ignore
-
old new 21 21 protoc.exe 22 22 _ReSharper.HeuristicLab 3.3 Tests 23 Google.ProtocolBuffers-2.4.1.473.dll
-
- Property svn:mergeinfo changed
- Property svn:ignore
-
branches/ScatterSearch (trunk integration)/HeuristicLab.Problems.LinearAssignment/3.3/LAPAssignment.cs
r8086 r8331 30 30 [Item("LAP Assignment", "Represents a solution to the LAP.")] 31 31 [StorableClass] 32 public sealed class LAPAssignment : Item, INotifyPropertyChanged { 32 public sealed class LAPAssignment : Item, INotifyPropertyChanged, IStorableContent { 33 public string Filename { get; set; } 33 34 34 35 [Storable] … … 40 41 costs = value; 41 42 if (changed) OnPropertyChanged("Costs"); 43 } 44 } 45 46 [Storable] 47 private StringArray rowNames; 48 public StringArray RowNames { 49 get { return rowNames; } 50 set { 51 bool changed = (rowNames != value); 52 rowNames = value; 53 if (changed) OnPropertyChanged("RowNames"); 54 } 55 } 56 57 [Storable] 58 private StringArray columnNames; 59 public StringArray ColumnNames { 60 get { return columnNames; } 61 set { 62 bool changed = (columnNames != value); 63 columnNames = value; 64 if (changed) OnPropertyChanged("ColumnNames"); 42 65 } 43 66 } … … 71 94 costs = cloner.Clone(original.costs); 72 95 assignment = cloner.Clone(original.assignment); 96 rowNames = cloner.Clone(original.rowNames); 97 columnNames = cloner.Clone(original.columnNames); 73 98 quality = cloner.Clone(original.quality); 74 99 } … … 81 106 this.quality = quality; 82 107 } 108 public LAPAssignment(DoubleMatrix costs, StringArray rowNames, StringArray columnNames, Permutation assignment) 109 : this(costs, assignment) { 110 this.rowNames = rowNames; 111 this.columnNames = columnNames; 112 } 113 public LAPAssignment(DoubleMatrix costs, StringArray rowNames, StringArray columnNames, Permutation assignment, DoubleValue quality) 114 : this(costs, rowNames, columnNames, assignment) { 115 this.quality = quality; 116 } 83 117 84 118 public override IDeepCloneable Clone(Cloner cloner) { 85 119 return new LAPAssignment(this, cloner); 86 120 } 87 88 121 89 122 public event PropertyChangedEventHandler PropertyChanged;
Note: See TracChangeset
for help on using the changeset viewer.