Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
10/30/13 17:05:39 (11 years ago)
Author:
ascheibe
Message:

#1886 started working on crossover wrappers that can execute analyzers for crossovers

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/HeuristicLab.Analysis.AlgorithmBehavior/HeuristicLab.Analysis.SolutionCaching/3.3/SolutionInformation.cs

    r10023 r10096  
    2323using HeuristicLab.Common;
    2424using HeuristicLab.Core;
     25using HeuristicLab.Optimization;
    2526using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
    2627
     
    3738    [Storable]
    3839    public int Generation { get; set; }
     40    [Storable]
     41    public ResultCollection InfoStore { get; set; }
    3942
    40     public SolutionInformation() { }
     43    public SolutionInformation() {
     44      ParentList = new List<T>();
     45      InfoStore = new ResultCollection();
     46    }
    4147
    4248    [StorableConstructor]
     
    4753      this.ParentList = new List<T>(original.ParentList);
    4854      this.Generation = original.Generation;
     55      this.InfoStore = (ResultCollection)original.InfoStore.Clone(cloner);
    4956    }
    5057
     
    6673          if (!pi.ParentList.Contains(p)) return false;
    6774        }
     75        foreach (IResult info in InfoStore) {
     76          if (!pi.InfoStore.Contains(info)) return false;
     77        }
    6878        return true;
    6979      } else {
     
    7181      }
    7282    }
     83
     84    public virtual void AddInfo(Result info) {
     85      InfoStore.Add(info);
     86    }
    7387  }
    7488}
Note: See TracChangeset for help on using the changeset viewer.