Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
07/20/13 13:06:59 (11 years ago)
Author:
ascheibe
Message:

#1886 worked on solution caching

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/HeuristicLab.Analysis.AlgorithmBehavior/HeuristicLab.Analysis.AlgorithmBehavior.Analyzers/3.3/SolutionsCaching/PermutationSolutionDictionary.cs

    r9723 r9728  
    3131  [StorableClass]
    3232  public class PermutationSolutionDictionary<TKey, TValue> : SolutionDictionary<TKey, TValue>
    33     where TKey : PermutationWrapper {
     33    where TKey : PermutationWrapper
     34    where TValue : PermutationInformation {
    3435
    3536    public PermutationSolutionDictionary() {
     
    8384      return new PermutationSolutionDictionary<TKey, TValue>(this, cloner);
    8485    }
     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    }
    8594  }
    8695}
Note: See TracChangeset for help on using the changeset viewer.