Changeset 8206 for branches/GP-MoveOperators/HeuristicLab.Problems.LinearAssignment/3.3/LAPAssignment.cs
- Timestamp:
- 07/03/12 16:46:35 (12 years ago)
- Location:
- branches/GP-MoveOperators
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/GP-MoveOperators
- Property svn:mergeinfo changed
/trunk/sources merged: 8084,8088-8090,8092-8100,8102-8113,8115,8117-8132,8134-8146,8148-8156,8158-8160,8163-8170,8173-8176,8178-8190,8192-8205
- Property svn:mergeinfo changed
-
branches/GP-MoveOperators/HeuristicLab.Problems.LinearAssignment/3.3/LAPAssignment.cs
r8022 r8206 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.