Changeset 10096 for branches/HeuristicLab.Analysis.AlgorithmBehavior/HeuristicLab.Analysis.SolutionCaching/3.3/SolutionInformation.cs
- Timestamp:
- 10/30/13 17:05:39 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.Analysis.AlgorithmBehavior/HeuristicLab.Analysis.SolutionCaching/3.3/SolutionInformation.cs
r10023 r10096 23 23 using HeuristicLab.Common; 24 24 using HeuristicLab.Core; 25 using HeuristicLab.Optimization; 25 26 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 26 27 … … 37 38 [Storable] 38 39 public int Generation { get; set; } 40 [Storable] 41 public ResultCollection InfoStore { get; set; } 39 42 40 public SolutionInformation() { } 43 public SolutionInformation() { 44 ParentList = new List<T>(); 45 InfoStore = new ResultCollection(); 46 } 41 47 42 48 [StorableConstructor] … … 47 53 this.ParentList = new List<T>(original.ParentList); 48 54 this.Generation = original.Generation; 55 this.InfoStore = (ResultCollection)original.InfoStore.Clone(cloner); 49 56 } 50 57 … … 66 73 if (!pi.ParentList.Contains(p)) return false; 67 74 } 75 foreach (IResult info in InfoStore) { 76 if (!pi.InfoStore.Contains(info)) return false; 77 } 68 78 return true; 69 79 } else { … … 71 81 } 72 82 } 83 84 public virtual void AddInfo(Result info) { 85 InfoStore.Add(info); 86 } 73 87 } 74 88 }
Note: See TracChangeset
for help on using the changeset viewer.