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/General/Moves
Files:
10 edited

Legend:

Unmodified
Added
Removed
  • branches/2520_PersistenceReintegration/HeuristicLab.Problems.VehicleRouting/3.4/Encodings/General/Moves/MultiVRPMoveOperator/MultiVRPMoveEvaluator.cs

    r16453 r16462  
    2323using HeuristicLab.Core;
    2424using HeuristicLab.Parameters;
    25 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
     25using HEAL.Fossil;
    2626using HeuristicLab.Problems.VehicleRouting.Encodings.General;
    2727using HeuristicLab.Problems.VehicleRouting.Variants;
     
    2929namespace HeuristicLab.Problems.VehicleRouting {
    3030  [Item("MultiVRPMoveEvaluator", "Evaluates a move for the VRP representation.")]
    31   [StorableClass]
     31  [StorableType("CF6F48D1-D488-4266-8F46-68EC1A0A7828")]
    3232  public sealed class MultiVRPMoveEvaluator : VRPMoveEvaluator, IMultiVRPMoveOperator, IGeneralVRPOperator {
    3333    public override ILookupParameter VRPMoveParameter {
     
    3636
    3737    [StorableConstructor]
    38     private MultiVRPMoveEvaluator(bool deserializing) : base(deserializing) { }
     38    private MultiVRPMoveEvaluator(StorableConstructorFlag _) : base(_) { }
    3939
    4040    public MultiVRPMoveEvaluator()
  • branches/2520_PersistenceReintegration/HeuristicLab.Problems.VehicleRouting/3.4/Encodings/General/Moves/MultiVRPMoveOperator/MultiVRPMoveGenerator.cs

    r16453 r16462  
    3030using HeuristicLab.Optimization;
    3131using HeuristicLab.Parameters;
    32 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
     32using HEAL.Fossil;
    3333using HeuristicLab.Problems.VehicleRouting.Encodings.Alba;
    3434using HeuristicLab.Problems.VehicleRouting.Encodings.Potvin;
     
    3838namespace HeuristicLab.Problems.VehicleRouting.Encodings.General {
    3939  [Item("MultiVRPMoveGenerator", "Randomly selects and applies its move generators.")]
    40   [StorableClass]
     40  [StorableType("2BB3FF78-447F-4FCD-B866-D28D295ABF0E")]
    4141  public class MultiVRPMoveGenerator : CheckedMultiOperator<IMultiVRPMoveGenerator>, IMultiVRPMoveOperator,
    4242    IStochasticOperator, IMoveGenerator, IGeneralVRPOperator, IMultiVRPOperator {
     
    7878
    7979    [StorableConstructor]
    80     protected MultiVRPMoveGenerator(bool deserializing) : base(deserializing) { }
     80    protected MultiVRPMoveGenerator(StorableConstructorFlag _) : base(_) { }
    8181    public MultiVRPMoveGenerator()
    8282      : base() {
  • branches/2520_PersistenceReintegration/HeuristicLab.Problems.VehicleRouting/3.4/Encodings/General/Moves/MultiVRPMoveOperator/MultiVRPMoveMaker.cs

    r16453 r16462  
    2323using HeuristicLab.Core;
    2424using HeuristicLab.Parameters;
    25 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
     25using HEAL.Fossil;
    2626using HeuristicLab.Problems.VehicleRouting.Variants;
    2727
    2828namespace HeuristicLab.Problems.VehicleRouting.Encodings.General {
    2929  [Item("MultiVRPMoveMaker", "Peforms a lambda interchange moves on a given VRP encoding and updates the quality.")]
    30   [StorableClass]
     30  [StorableType("E0D91D91-A8CC-459D-9D65-180D507A75AD")]
    3131  public class MultiVRPMoveMaker : VRPMoveMaker, IMultiVRPMoveOperator, IGeneralVRPOperator {
    3232    public override ILookupParameter VRPMoveParameter {
     
    3535
    3636    [StorableConstructor]
    37     protected MultiVRPMoveMaker(bool deserializing) : base(deserializing) { }
     37    protected MultiVRPMoveMaker(StorableConstructorFlag _) : base(_) { }
    3838
    3939    public MultiVRPMoveMaker()
  • branches/2520_PersistenceReintegration/HeuristicLab.Problems.VehicleRouting/3.4/Encodings/General/Moves/MultiVRPMoveOperator/MultiVRPMoveTabuChecker.cs

    r16453 r16462  
    2626using HeuristicLab.Optimization;
    2727using HeuristicLab.Parameters;
    28 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
     28using HEAL.Fossil;
    2929using HeuristicLab.Problems.VehicleRouting.Interfaces;
    3030using HeuristicLab.Problems.VehicleRouting.Variants;
     
    3232namespace HeuristicLab.Problems.VehicleRouting.Encodings.General {
    3333  [Item("MultiVRPMoveTabuChecker", "Checks if a VRP move is tabu.")]
    34   [StorableClass]
     34  [StorableType("5688A0E6-7EB0-43E2-9D9F-AB68D689148B")]
    3535  public class MultiVRPMoveTabuChecker : SingleSuccessorOperator, IMultiVRPMoveOperator, ITabuChecker, IGeneralVRPOperator {
    3636    public ILookupParameter VRPMoveParameter {
     
    6767
    6868    [StorableConstructor]
    69     protected MultiVRPMoveTabuChecker(bool deserializing) : base(deserializing) { }
     69    protected MultiVRPMoveTabuChecker(StorableConstructorFlag _) : base(_) { }
    7070
    7171    public MultiVRPMoveTabuChecker()
  • branches/2520_PersistenceReintegration/HeuristicLab.Problems.VehicleRouting/3.4/Encodings/General/Moves/MultiVRPMoveOperator/MultiVRPMoveTabuMaker.cs

    r16453 r16462  
    2626using HeuristicLab.Optimization;
    2727using HeuristicLab.Parameters;
    28 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
     28using HEAL.Fossil;
    2929using HeuristicLab.Problems.VehicleRouting.Interfaces;
    3030using HeuristicLab.Problems.VehicleRouting.Variants;
     
    3232namespace HeuristicLab.Problems.VehicleRouting.Encodings.General {
    3333  [Item("MultiVRPMoveTabuMaker", "A multi VRP move tabu maker.")]
    34   [StorableClass]
     34  [StorableType("58E2C5A6-88CF-460B-8684-E38E2E64F648")]
    3535  public class MultiVRPMoveTabuMaker : SingleSuccessorOperator, IMultiVRPMoveOperator, ITabuMaker, IGeneralVRPOperator, ISingleObjectiveOperator {
    3636    public ILookupParameter VRPMoveParameter {
     
    6060
    6161    [StorableConstructor]
    62     protected MultiVRPMoveTabuMaker(bool deserializing) : base(deserializing) { }
     62    protected MultiVRPMoveTabuMaker(StorableConstructorFlag _) : base(_) { }
    6363
    6464    public MultiVRPMoveTabuMaker()
  • branches/2520_PersistenceReintegration/HeuristicLab.Problems.VehicleRouting/3.4/Encodings/General/Moves/VRPMoveAttribute.cs

    r16453 r16462  
    2222using HeuristicLab.Common;
    2323using HeuristicLab.Core;
    24 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
     24using HEAL.Fossil;
    2525
    2626namespace HeuristicLab.Problems.VehicleRouting.Encodings.General {
    2727  [Item("VRPMoveAttribute", "Base class for specifying a move attribute")]
    28   [StorableClass]
     28  [StorableType("61460C9F-D313-47C1-9894-A6A5E4852DBB")]
    2929  public class VRPMoveAttribute : Item {
    3030    [Storable]
     
    3232
    3333    [StorableConstructor]
    34     protected VRPMoveAttribute(bool deserializing) : base(deserializing) { }
     34    protected VRPMoveAttribute(StorableConstructorFlag _) : base(_) { }
    3535    protected VRPMoveAttribute(VRPMoveAttribute original, Cloner cloner)
    3636      : base(original, cloner) {
  • branches/2520_PersistenceReintegration/HeuristicLab.Problems.VehicleRouting/3.4/Encodings/General/Moves/VRPMoveEvaluator.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.General {
    3131  [Item("VRPMoveEvaluator", "Evaluates a VRP move.")]
    32   [StorableClass]
     32  [StorableType("2C1B7479-DCD7-41F7-BB65-D1D714313172")]
    3333  public abstract class VRPMoveEvaluator : VRPMoveOperator, ISingleObjectiveMoveEvaluator {
    3434    public const string MovePrefix = "Move";
     
    4545
    4646    [StorableConstructor]
    47     protected VRPMoveEvaluator(bool deserializing) : base(deserializing) { }
     47    protected VRPMoveEvaluator(StorableConstructorFlag _) : base(_) { }
    4848
    4949    public VRPMoveEvaluator()
  • branches/2520_PersistenceReintegration/HeuristicLab.Problems.VehicleRouting/3.4/Encodings/General/Moves/VRPMoveGenerator.cs

    r16453 r16462  
    2323using HeuristicLab.Core;
    2424using HeuristicLab.Optimization;
    25 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
     25using HEAL.Fossil;
    2626
    2727namespace HeuristicLab.Problems.VehicleRouting.Encodings.General {
    2828  [Item("VRPMoveGenerator", "Generates moves for a VRP solution.")]
    29   [StorableClass]
     29  [StorableType("B76BD2D8-2D37-4006-86AF-64A1D28DC26D")]
    3030  public abstract class
    3131    VRPMoveGenerator : VRPMoveOperator, IMoveGenerator {
    3232    [StorableConstructor]
    33     protected VRPMoveGenerator(bool deserializing) : base(deserializing) { }
     33    protected VRPMoveGenerator(StorableConstructorFlag _) : base(_) { }
    3434
    3535    public VRPMoveGenerator()
  • branches/2520_PersistenceReintegration/HeuristicLab.Problems.VehicleRouting/3.4/Encodings/General/Moves/VRPMoveMaker.cs

    r16453 r16462  
    2626using HeuristicLab.Optimization;
    2727using HeuristicLab.Parameters;
    28 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
     28using HEAL.Fossil;
    2929using HeuristicLab.Problems.VehicleRouting.Interfaces;
    3030
    3131namespace HeuristicLab.Problems.VehicleRouting.Encodings.General {
    3232  [Item("VRPMoveMaker", "Performs a VRP move.")]
    33   [StorableClass]
     33  [StorableType("00082602-A676-48A7-A2D7-66733B972685")]
    3434  public abstract class VRPMoveMaker : VRPMoveOperator, IMoveMaker, ISingleObjectiveOperator {
    3535    public ILookupParameter<DoubleValue> QualityParameter {
     
    4444
    4545    [StorableConstructor]
    46     protected VRPMoveMaker(bool deserializing) : base(deserializing) { }
     46    protected VRPMoveMaker(StorableConstructorFlag _) : base(_) { }
    4747
    4848    public VRPMoveMaker()
  • branches/2520_PersistenceReintegration/HeuristicLab.Problems.VehicleRouting/3.4/Encodings/General/Moves/VRPMoveOperator.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.General {
    2929  [Item("VRPMoveOperator", "A VRP move operator.")]
    30   [StorableClass]
     30  [StorableType("B2A37CCE-3EF6-4648-8A9B-2BCBD4EC93F1")]
    3131  public abstract class VRPMoveOperator : VRPOperator, IVRPMoveOperator {
    3232    public ILookupParameter<IVRPEncoding> VRPToursParameter {
     
    3737
    3838    [StorableConstructor]
    39     protected VRPMoveOperator(bool deserializing) : base(deserializing) { }
     39    protected VRPMoveOperator(StorableConstructorFlag _) : base(_) { }
    4040
    4141    public VRPMoveOperator() {
Note: See TracChangeset for help on using the changeset viewer.