Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
12/28/18 16:10:48 (6 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
Location:
branches/2520_PersistenceReintegration/HeuristicLab.Problems.TravelingSalesman/3.3/MoveEvaluators/TwoOpt
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • branches/2520_PersistenceReintegration/HeuristicLab.Problems.TravelingSalesman/3.3/MoveEvaluators/TwoOpt/TSPInversionMoveDistanceMatrixEvaluator.cs

    r16453 r16462  
    2626using HeuristicLab.Encodings.PermutationEncoding;
    2727using HeuristicLab.Parameters;
    28 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
     28using HEAL.Fossil;
    2929
    3030namespace HeuristicLab.Problems.TravelingSalesman {
     
    3333  /// </summary>
    3434  [Item("TSPInversionMoveDistanceMatrixEvaluator", "Evaluates an inversion move (2-opt) by summing up the length of all added edges and subtracting the length of all deleted edges.")]
    35   [StorableClass]
     35  [StorableType("1EA2C5B2-96E0-4C64-9089-F08F6D2B1CAE")]
    3636  public class TSPInversionMoveDistanceMatrixEvaluator : TSPMoveEvaluator, IPermutationInversionMoveOperator {
    3737    public override Type EvaluatorType {
     
    5050
    5151    [StorableConstructor]
    52     protected TSPInversionMoveDistanceMatrixEvaluator(bool deserializing) : base(deserializing) { }
     52    protected TSPInversionMoveDistanceMatrixEvaluator(StorableConstructorFlag _) : base(_) { }
    5353    protected TSPInversionMoveDistanceMatrixEvaluator(TSPInversionMoveDistanceMatrixEvaluator original, Cloner cloner) : base(original, cloner) { }
    5454    public TSPInversionMoveDistanceMatrixEvaluator()
  • branches/2520_PersistenceReintegration/HeuristicLab.Problems.TravelingSalesman/3.3/MoveEvaluators/TwoOpt/TSPInversionMoveEuclideanPathEvaluator.cs

    r16453 r16462  
    2323using HeuristicLab.Common;
    2424using HeuristicLab.Core;
    25 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
     25using HEAL.Fossil;
    2626
    2727namespace HeuristicLab.Problems.TravelingSalesman {
     
    3030  /// </summary>
    3131  [Item("TSPInversionMoveEuclideanPathEvaluator", "Operator for evaluating an inversion move (2-opt) based on euclidean distances.")]
    32   [StorableClass]
     32  [StorableType("856F5D88-FBD5-4DC9-AC52-60C402B83F21")]
    3333  public class TSPInversionMoveEuclideanPathEvaluator : TSPInversionMovePathEvaluator {
    3434    [StorableConstructor]
    35     protected TSPInversionMoveEuclideanPathEvaluator(bool deserializing) : base(deserializing) { }
     35    protected TSPInversionMoveEuclideanPathEvaluator(StorableConstructorFlag _) : base(_) { }
    3636    protected TSPInversionMoveEuclideanPathEvaluator(TSPInversionMoveEuclideanPathEvaluator original, Cloner cloner) : base(original, cloner) { }
    3737    public TSPInversionMoveEuclideanPathEvaluator() : base() { }
  • branches/2520_PersistenceReintegration/HeuristicLab.Problems.TravelingSalesman/3.3/MoveEvaluators/TwoOpt/TSPInversionMoveGeoPathEvaluator.cs

    r16453 r16462  
    2323using HeuristicLab.Common;
    2424using HeuristicLab.Core;
    25 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
     25using HEAL.Fossil;
    2626
    2727namespace HeuristicLab.Problems.TravelingSalesman {
     
    3030  /// </summary>
    3131  [Item("TSPInversionMoveGeoPathEvaluator", "Operator for evaluating an inversion move (2-opt) based on geo (world) distances.")]
    32   [StorableClass]
     32  [StorableType("DCBB9049-6C89-4249-BB7D-314B7C62E9E6")]
    3333  public class TSPInversionMoveGeoPathEvaluator : TSPInversionMovePathEvaluator {
    3434    public override Type EvaluatorType {
     
    4040
    4141    [StorableConstructor]
    42     protected TSPInversionMoveGeoPathEvaluator(bool deserializing) : base(deserializing) { }
     42    protected TSPInversionMoveGeoPathEvaluator(StorableConstructorFlag _) : base(_) { }
    4343    protected TSPInversionMoveGeoPathEvaluator(TSPInversionMoveGeoPathEvaluator original, Cloner cloner) : base(original, cloner) { }
    4444    public TSPInversionMoveGeoPathEvaluator() : base() { }
  • branches/2520_PersistenceReintegration/HeuristicLab.Problems.TravelingSalesman/3.3/MoveEvaluators/TwoOpt/TSPInversionMovePathEvaluator.cs

    r16453 r16462  
    2525using HeuristicLab.Encodings.PermutationEncoding;
    2626using HeuristicLab.Parameters;
    27 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
     27using HEAL.Fossil;
    2828
    2929namespace HeuristicLab.Problems.TravelingSalesman {
     
    3232  /// </summary>
    3333  [Item("TSPInversionMovePathEvaluator", "Evaluates an inversion move (2-opt) by summing up the length of all added edges and subtracting the length of all deleted edges.")]
    34   [StorableClass]
     34  [StorableType("0D180690-C01E-4F64-94D9-C6F713EA195B")]
    3535  public abstract class TSPInversionMovePathEvaluator : TSPPathMoveEvaluator, IPermutationInversionMoveOperator {
    3636    public ILookupParameter<InversionMove> InversionMoveParameter {
     
    3939
    4040    [StorableConstructor]
    41     protected TSPInversionMovePathEvaluator(bool deserializing) : base(deserializing) { }
     41    protected TSPInversionMovePathEvaluator(StorableConstructorFlag _) : base(_) { }
    4242    protected TSPInversionMovePathEvaluator(TSPInversionMovePathEvaluator original, Cloner cloner) : base(original, cloner) { }
    4343    public TSPInversionMovePathEvaluator()
  • branches/2520_PersistenceReintegration/HeuristicLab.Problems.TravelingSalesman/3.3/MoveEvaluators/TwoOpt/TSPInversionMoveRoundedEuclideanPathEvaluator.cs

    r16453 r16462  
    2323using HeuristicLab.Common;
    2424using HeuristicLab.Core;
    25 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
     25using HEAL.Fossil;
    2626
    2727namespace HeuristicLab.Problems.TravelingSalesman {
     
    3030  /// </summary>
    3131  [Item("TSPInversionMoveRoundedEuclideanPathEvaluator", "Operator for evaluating an inversion move (2-opt) based on rounded euclidean distances.")]
    32   [StorableClass]
     32  [StorableType("84BE355F-BC76-4765-885F-CFCAEDA93DFD")]
    3333  public class TSPInversionMoveRoundedEuclideanPathEvaluator : TSPInversionMovePathEvaluator {
    3434    [StorableConstructor]
    35     protected TSPInversionMoveRoundedEuclideanPathEvaluator(bool deserializing) : base(deserializing) { }
     35    protected TSPInversionMoveRoundedEuclideanPathEvaluator(StorableConstructorFlag _) : base(_) { }
    3636    protected TSPInversionMoveRoundedEuclideanPathEvaluator(TSPInversionMoveRoundedEuclideanPathEvaluator original, Cloner cloner) : base(original, cloner) { }
    3737    public TSPInversionMoveRoundedEuclideanPathEvaluator() : base() { }
Note: See TracChangeset for help on using the changeset viewer.