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.VehicleRouting/3.4/Encodings/Potvin/Moves/CustomerRelocation
Files:
10 edited

Legend:

Unmodified
Added
Removed
  • branches/2520_PersistenceReintegration/HeuristicLab.Problems.VehicleRouting/3.4/Encodings/Potvin/Moves/CustomerRelocation/PotvinCustomerRelocationExhaustiveMoveGenerator.cs

    r16453 r16462  
    2424using HeuristicLab.Core;
    2525using HeuristicLab.Optimization;
    26 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
     26using HEAL.Fossil;
    2727using HeuristicLab.Problems.VehicleRouting.Interfaces;
    2828
    2929namespace HeuristicLab.Problems.VehicleRouting.Encodings.Potvin {
    3030  [Item("PotvinCustomerRelocationExhaustiveMoveGenerator", "Generates customer relocation moves from a given VRP encoding.")]
    31   [StorableClass]
     31  [StorableType("713A5EF1-7CA7-4992-AA8B-5BCF430FA4B4")]
    3232  public sealed class PotvinCustomerRelocationExhaustiveMoveGenerator : PotvinCustomerRelocationMoveGenerator, IExhaustiveMoveGenerator {
    3333    public override IDeepCloneable Clone(Cloner cloner) {
     
    3636
    3737    [StorableConstructor]
    38     private PotvinCustomerRelocationExhaustiveMoveGenerator(bool deserializing) : base(deserializing) { }
     38    private PotvinCustomerRelocationExhaustiveMoveGenerator(StorableConstructorFlag _) : base(_) { }
    3939
    4040    public PotvinCustomerRelocationExhaustiveMoveGenerator()
  • branches/2520_PersistenceReintegration/HeuristicLab.Problems.VehicleRouting/3.4/Encodings/Potvin/Moves/CustomerRelocation/PotvinCustomerRelocationMove.cs

    r16453 r16462  
    2323using HeuristicLab.Core;
    2424using HeuristicLab.Optimization;
    25 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
     25using HEAL.Fossil;
    2626using HeuristicLab.Problems.VehicleRouting.Encodings.General;
    2727using HeuristicLab.Problems.VehicleRouting.Interfaces;
     
    2929namespace HeuristicLab.Problems.VehicleRouting.Encodings.Potvin {
    3030  [Item("PotvinCustomerRelocationMove", "Item that describes a relocation move on a VRP representation.")]
    31   [StorableClass]
     31  [StorableType("4B91A311-EEEE-49A3-A260-A01238F1C268")]
    3232  public class PotvinCustomerRelocationMove : Item, IVRPMove {
    3333    [Storable]
     
    7373
    7474    [StorableConstructor]
    75     protected PotvinCustomerRelocationMove(bool deserializing) : base(deserializing) { }
     75    protected PotvinCustomerRelocationMove(StorableConstructorFlag _) : base(_) { }
    7676
    7777    #region IVRPMove Members
  • branches/2520_PersistenceReintegration/HeuristicLab.Problems.VehicleRouting/3.4/Encodings/Potvin/Moves/CustomerRelocation/PotvinCustomerRelocationMoveAttribute.cs

    r16453 r16462  
    2222using HeuristicLab.Common;
    2323using HeuristicLab.Core;
    24 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
     24using HEAL.Fossil;
    2525using HeuristicLab.Problems.VehicleRouting.Encodings.General;
    2626
    2727namespace HeuristicLab.Problems.VehicleRouting.Encodings.Potvin {
    2828  [Item("PotvinCustomerRelocationMoveAttribute", "Customer relocation move attribute")]
    29   [StorableClass]
     29  [StorableType("4B8240FA-38A4-40F7-AB7E-04632C710598")]
    3030  public class PotvinCustomerRelocationMoveAttribute : VRPMoveAttribute {
    3131    [Storable]
     
    3535
    3636    [StorableConstructor]
    37     protected PotvinCustomerRelocationMoveAttribute(bool deserializing) : base(deserializing) { }
     37    protected PotvinCustomerRelocationMoveAttribute(StorableConstructorFlag _) : base(_) { }
    3838    protected PotvinCustomerRelocationMoveAttribute(PotvinCustomerRelocationMoveAttribute original, Cloner cloner)
    3939      : base(original, cloner) {
  • branches/2520_PersistenceReintegration/HeuristicLab.Problems.VehicleRouting/3.4/Encodings/Potvin/Moves/CustomerRelocation/PotvinCustomerRelocationMoveEvaluator.cs

    r16453 r16462  
    2424using HeuristicLab.Data;
    2525using HeuristicLab.Parameters;
    26 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
     26using HEAL.Fossil;
    2727
    2828namespace HeuristicLab.Problems.VehicleRouting.Encodings.Potvin {
    2929  [Item("PotvinCustomerRelocationMoveEvaluator", "Evaluates a customer relocation move for a VRP representation. ")]
    30   [StorableClass]
     30  [StorableType("6289C1EA-7223-4BCC-97FD-884E668B6AF4")]
    3131  public sealed class PotvinCustomerRelocationMoveEvaluator : PotvinMoveEvaluator, IPotvinCustomerRelocationMoveOperator {
    3232    public ILookupParameter<PotvinCustomerRelocationMove> CustomerRelocationMoveParameter {
     
    5151
    5252    [StorableConstructor]
    53     private PotvinCustomerRelocationMoveEvaluator(bool deserializing) : base(deserializing) { }
     53    private PotvinCustomerRelocationMoveEvaluator(StorableConstructorFlag _) : base(_) { }
    5454
    5555    public PotvinCustomerRelocationMoveEvaluator()
  • branches/2520_PersistenceReintegration/HeuristicLab.Problems.VehicleRouting/3.4/Encodings/Potvin/Moves/CustomerRelocation/PotvinCustomerRelocationMoveGenerator.cs

    r16453 r16462  
    2323using HeuristicLab.Core;
    2424using HeuristicLab.Parameters;
    25 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
     25using HEAL.Fossil;
    2626using HeuristicLab.Problems.VehicleRouting.Interfaces;
    2727
    2828namespace HeuristicLab.Problems.VehicleRouting.Encodings.Potvin {
    2929  [Item("PotvinCustomerRelocationMoveGenerator", "Generates customer relocation moves from a given VRP encoding.")]
    30   [StorableClass]
     30  [StorableType("07460C95-15CC-49D6-B54D-D740968E7707")]
    3131  public abstract class PotvinCustomerRelocationMoveGenerator : PotvinMoveGenerator, IPotvinCustomerRelocationMoveOperator {
    3232    public ILookupParameter<PotvinCustomerRelocationMove> CustomerRelocationMoveParameter {
     
    4343
    4444    [StorableConstructor]
    45     protected PotvinCustomerRelocationMoveGenerator(bool deserializing) : base(deserializing) { }
     45    protected PotvinCustomerRelocationMoveGenerator(StorableConstructorFlag _) : base(_) { }
    4646
    4747    public PotvinCustomerRelocationMoveGenerator()
  • branches/2520_PersistenceReintegration/HeuristicLab.Problems.VehicleRouting/3.4/Encodings/Potvin/Moves/CustomerRelocation/PotvinCustomerRelocationMoveMaker.cs

    r16453 r16462  
    2525using HeuristicLab.Optimization;
    2626using HeuristicLab.Parameters;
    27 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
     27using HEAL.Fossil;
    2828using HeuristicLab.Problems.VehicleRouting.Interfaces;
    2929using HeuristicLab.Problems.VehicleRouting.ProblemInstances;
     
    3131namespace HeuristicLab.Problems.VehicleRouting.Encodings.Potvin {
    3232  [Item("PotvinCustomerRelocationMoveMaker", "Peforms the customer relocation move on a given VRP encoding and updates the quality.")]
    33   [StorableClass]
     33  [StorableType("B79B87F4-A39A-4618-BD0C-E1D40E821152")]
    3434  public class PotvinCustomerRelocationMoveMaker : PotvinMoveMaker, IPotvinCustomerRelocationMoveOperator, IMoveMaker {
    3535    public ILookupParameter<PotvinCustomerRelocationMove> CustomerRelocationMoveParameter {
     
    5050
    5151    [StorableConstructor]
    52     protected PotvinCustomerRelocationMoveMaker(bool deserializing) : base(deserializing) { }
     52    protected PotvinCustomerRelocationMoveMaker(StorableConstructorFlag _) : base(_) { }
    5353
    5454    public PotvinCustomerRelocationMoveMaker()
  • branches/2520_PersistenceReintegration/HeuristicLab.Problems.VehicleRouting/3.4/Encodings/Potvin/Moves/CustomerRelocation/PotvinCustomerRelocationMoveTabuCriterion.cs

    r16453 r16462  
    2727using HeuristicLab.Optimization;
    2828using HeuristicLab.Parameters;
    29 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
     29using HEAL.Fossil;
    3030using HeuristicLab.Problems.VehicleRouting.Interfaces;
    3131
    3232namespace HeuristicLab.Problems.VehicleRouting.Encodings.Potvin {
    3333  [Item("PotvinCustomerRelocationTabuCriterion", @"Checks if a certain customer relocation move is tabu.")]
    34   [StorableClass]
     34  [StorableType("DFA45CF0-EE4A-47C5-B98B-FB82251463D3")]
    3535  public class PotvinCustomerRelocationMoveTabuCriterion : SingleSuccessorOperator, IPotvinCustomerRelocationMoveOperator, ITabuChecker, IPotvinOperator, IVRPMoveOperator {
    3636    public override bool CanChangeName {
     
    7373
    7474    [StorableConstructor]
    75     protected PotvinCustomerRelocationMoveTabuCriterion(bool deserializing) : base(deserializing) { }
     75    protected PotvinCustomerRelocationMoveTabuCriterion(StorableConstructorFlag _) : base(_) { }
    7676    protected PotvinCustomerRelocationMoveTabuCriterion(PotvinCustomerRelocationMoveTabuCriterion original, Cloner cloner) : base(original, cloner) { }
    7777    public PotvinCustomerRelocationMoveTabuCriterion()
  • branches/2520_PersistenceReintegration/HeuristicLab.Problems.VehicleRouting/3.4/Encodings/Potvin/Moves/CustomerRelocation/PotvinCustomerRelocationMoveTabuMaker.cs

    r16453 r16462  
    2424using HeuristicLab.Optimization.Operators;
    2525using HeuristicLab.Parameters;
    26 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
     26using HEAL.Fossil;
    2727using HeuristicLab.Problems.VehicleRouting.Interfaces;
    2828
    2929namespace HeuristicLab.Problems.VehicleRouting.Encodings.Potvin {
    3030  [Item("PotvinCustomerRelocationMoveTabuMaker", "Declares a given customer relocation move as tabu.")]
    31   [StorableClass]
     31  [StorableType("F2F78496-2059-4A16-B896-E1C779D913D0")]
    3232  public class PotvinCustomerRelocationMoveTabuMaker : TabuMaker, IPotvinCustomerRelocationMoveOperator, IPotvinOperator {
    3333    public ILookupParameter<PotvinCustomerRelocationMove> CustomerRelocationMoveParameter {
     
    4545
    4646    [StorableConstructor]
    47     protected PotvinCustomerRelocationMoveTabuMaker(bool deserializing) : base(deserializing) { }
     47    protected PotvinCustomerRelocationMoveTabuMaker(StorableConstructorFlag _) : base(_) { }
    4848    protected PotvinCustomerRelocationMoveTabuMaker(PotvinCustomerRelocationMoveTabuMaker original, Cloner cloner) : base(original, cloner) { }
    4949    public PotvinCustomerRelocationMoveTabuMaker()
  • branches/2520_PersistenceReintegration/HeuristicLab.Problems.VehicleRouting/3.4/Encodings/Potvin/Moves/CustomerRelocation/PotvinCustomerRelocationMultiMoveGenerator.cs

    r16453 r16462  
    2626using HeuristicLab.Optimization;
    2727using HeuristicLab.Parameters;
    28 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
     28using HEAL.Fossil;
    2929using HeuristicLab.Problems.VehicleRouting.Encodings.General;
    3030using HeuristicLab.Problems.VehicleRouting.Interfaces;
     
    3232namespace HeuristicLab.Problems.VehicleRouting.Encodings.Potvin {
    3333  [Item("PotvinCustomerRelocationMultiMoveGenerator", "Generates customer relocation moves from a given VRP encoding.")]
    34   [StorableClass]
     34  [StorableType("F3C0FF63-0A55-49C7-A6A5-F2DEE3024B5F")]
    3535  public sealed class PotvinCustomerRelocationMultiMoveGenerator : PotvinCustomerRelocationMoveGenerator, IMultiMoveGenerator, IMultiVRPMoveGenerator {
    3636    public ILookupParameter<IRandom> RandomParameter {
     
    4747
    4848    [StorableConstructor]
    49     private PotvinCustomerRelocationMultiMoveGenerator(bool deserializing) : base(deserializing) { }
     49    private PotvinCustomerRelocationMultiMoveGenerator(StorableConstructorFlag _) : base(_) { }
    5050
    5151    public PotvinCustomerRelocationMultiMoveGenerator()
  • branches/2520_PersistenceReintegration/HeuristicLab.Problems.VehicleRouting/3.4/Encodings/Potvin/Moves/CustomerRelocation/PotvinCustomerRelocationSingleMoveGenerator.cs

    r16453 r16462  
    2525using HeuristicLab.Optimization;
    2626using HeuristicLab.Parameters;
    27 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
     27using HEAL.Fossil;
    2828using HeuristicLab.Problems.VehicleRouting.Interfaces;
    2929
    3030namespace HeuristicLab.Problems.VehicleRouting.Encodings.Potvin {
    3131  [Item("PotvinCustomerRelocationSingleMoveGenerator", "Generates a single customer relocation move from a given VRP encoding.")]
    32   [StorableClass]
     32  [StorableType("DB14C7A7-182D-42DF-BDC8-2F50E84E2E12")]
    3333  public sealed class PotvinCustomerRelocationSingleMoveGenerator : PotvinCustomerRelocationMoveGenerator,
    3434    ISingleMoveGenerator {
     
    5050
    5151    [StorableConstructor]
    52     private PotvinCustomerRelocationSingleMoveGenerator(bool deserializing) : base(deserializing) { }
     52    private PotvinCustomerRelocationSingleMoveGenerator(StorableConstructorFlag _) : base(_) { }
    5353
    5454    public PotvinCustomerRelocationSingleMoveGenerator()
Note: See TracChangeset for help on using the changeset viewer.