Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
12/28/18 16:10:48 (5 years ago)
Author:
jkarder
Message:

#2520: worked on reintegration of new persistence

  • added nuget references to HEAL.Fossil
  • added StorableType attributes to many classes
  • changed signature of StorableConstructors
  • removed some classes in old persistence
  • removed some unnecessary usings
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2520_PersistenceReintegration/HeuristicLab.Problems.QuadraticAssignment/3.3/QAPSimilarityCalculator.cs

    r16453 r16462  
    2626using HeuristicLab.Encodings.PermutationEncoding;
    2727using HeuristicLab.Optimization.Operators;
    28 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
     28using HEAL.Fossil;
    2929
    3030namespace HeuristicLab.Problems.QuadraticAssignment {
     
    3636  /// </remarks>
    3737  [Item("QAPSimilarityCalculator", "An operator that performs similarity calculation between two quadratic assignment solutions. The operator calculates the similarity based on the number of edges the two solutions have in common.")]
    38   [StorableClass]
     38  [StorableType("23D76028-3E59-4E77-959A-D4A1BFB59864")]
    3939  public sealed class QAPSimilarityCalculator : SingleObjectiveSolutionSimilarityCalculator {
    4040    protected override bool IsCommutative { get { return true; } }
     
    4545    public DoubleMatrix Distances { get; set; }
    4646
    47     private QAPSimilarityCalculator(bool deserializing) : base(deserializing) { }
     47    [StorableConstructor]
     48    private QAPSimilarityCalculator(StorableConstructorFlag _) : base(_) { }
    4849    private QAPSimilarityCalculator(QAPSimilarityCalculator original, Cloner cloner)
    4950      : base(original, cloner) {
Note: See TracChangeset for help on using the changeset viewer.