Changeset 9728 for branches/HeuristicLab.Analysis.AlgorithmBehavior/HeuristicLab.Analysis.AlgorithmBehavior.Analyzers/3.3/SolutionsCaching/PermutationSolutionDictionary.cs
- Timestamp:
- 07/20/13 13:06:59 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.Analysis.AlgorithmBehavior/HeuristicLab.Analysis.AlgorithmBehavior.Analyzers/3.3/SolutionsCaching/PermutationSolutionDictionary.cs
r9723 r9728 31 31 [StorableClass] 32 32 public class PermutationSolutionDictionary<TKey, TValue> : SolutionDictionary<TKey, TValue> 33 where TKey : PermutationWrapper { 33 where TKey : PermutationWrapper 34 where TValue : PermutationInformation { 34 35 35 36 public PermutationSolutionDictionary() { … … 83 84 return new PermutationSolutionDictionary<TKey, TValue>(this, cloner); 84 85 } 86 87 public int NumberOfPartialSolutions() { 88 return solutionDictionary.Where(x => x.Key.ElementType == ElementType.Diff).Count(); 89 } 90 91 public int NumberOfCompleteSolutions() { 92 return solutionDictionary.Where(x => x.Key.ElementType == ElementType.Complete).Count(); 93 } 85 94 } 86 95 }
Note: See TracChangeset
for help on using the changeset viewer.