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.PTSP/3.3/Moves/TwoPointFiveOpt
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • branches/2520_PersistenceReintegration/HeuristicLab.Problems.PTSP/3.3/Moves/TwoPointFiveOpt/ExhaustiveTwoPointFiveMoveGenerator.cs

    r16453 r16462  
    2727using HeuristicLab.Encodings.PermutationEncoding;
    2828using HeuristicLab.Optimization;
    29 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
     29using HEAL.Fossil;
    3030
    3131namespace HeuristicLab.Problems.PTSP {
    3232  [Item("Exhaustive 2.5-MoveGenerator", "Generates all possible inversion and shift moves (2.5-opt) from a given permutation.")]
    33   [StorableClass]
     33  [StorableType("DF95E561-1F47-4845-A58D-CEF32B14461B")]
    3434  public sealed class ExhaustiveTwoPointFiveMoveGenerator : TwoPointFiveMoveGenerator, IExhaustiveMoveGenerator {
    3535
    3636    [StorableConstructor]
    37     private ExhaustiveTwoPointFiveMoveGenerator(bool deserializing) : base(deserializing) { }
     37    private ExhaustiveTwoPointFiveMoveGenerator(StorableConstructorFlag _) : base(_) { }
    3838    private ExhaustiveTwoPointFiveMoveGenerator(ExhaustiveTwoPointFiveMoveGenerator original, Cloner cloner) : base(original, cloner) { }
    3939    public ExhaustiveTwoPointFiveMoveGenerator() : base() { }
  • branches/2520_PersistenceReintegration/HeuristicLab.Problems.PTSP/3.3/Moves/TwoPointFiveOpt/PTSPAnalyticalTwoPointFiveMoveEvaluator.cs

    r16453 r16462  
    2626using HeuristicLab.Encodings.PermutationEncoding;
    2727using HeuristicLab.Parameters;
    28 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
     28using HEAL.Fossil;
    2929
    3030namespace HeuristicLab.Problems.PTSP {
    3131  [Item("PTSP Analytical 2.5-MoveEvaluator", "Operator that evaluates 2.5-p-opt moves of PTSP by a full solution evaluation.")]
    32   [StorableClass]
     32  [StorableType("59729BB5-2026-44E8-8C19-EBCC2303103C")]
    3333  public class PTSPAnalyticalTwoPointFiveMoveEvaluator : AnalyticalPTSPMoveEvaluator, ITwoPointFiveMoveOperator {
    3434
     
    3838
    3939    [StorableConstructor]
    40     protected PTSPAnalyticalTwoPointFiveMoveEvaluator(bool deserializing) : base(deserializing) { }
     40    protected PTSPAnalyticalTwoPointFiveMoveEvaluator(StorableConstructorFlag _) : base(_) { }
    4141    protected PTSPAnalyticalTwoPointFiveMoveEvaluator(PTSPAnalyticalTwoPointFiveMoveEvaluator original, Cloner cloner) : base(original, cloner) { }
    4242    public PTSPAnalyticalTwoPointFiveMoveEvaluator()
  • branches/2520_PersistenceReintegration/HeuristicLab.Problems.PTSP/3.3/Moves/TwoPointFiveOpt/PTSPEstimatedTwoPointFiveMoveEvaluator.cs

    r16453 r16462  
    2626using HeuristicLab.Encodings.PermutationEncoding;
    2727using HeuristicLab.Parameters;
    28 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
     28using HEAL.Fossil;
    2929
    3030namespace HeuristicLab.Problems.PTSP {
    3131  [Item("PTSP Estimated 2.5-MoveEvaluator", "Operator that evaluates 2.5-p-opt moves of PTSP")]
    32   [StorableClass]
     32  [StorableType("3E67BDD5-5A80-46F7-A7D6-9A67595CFD8C")]
    3333  public class PTSPEstimatedTwoPointFiveMoveEvaluator : EstimatedPTSPMoveEvaluator, ITwoPointFiveMoveOperator {
    3434
     
    3838
    3939    [StorableConstructor]
    40     protected PTSPEstimatedTwoPointFiveMoveEvaluator(bool deserializing) : base(deserializing) { }
     40    protected PTSPEstimatedTwoPointFiveMoveEvaluator(StorableConstructorFlag _) : base(_) { }
    4141    protected PTSPEstimatedTwoPointFiveMoveEvaluator(PTSPEstimatedTwoPointFiveMoveEvaluator original, Cloner cloner) : base(original, cloner) { }
    4242    public PTSPEstimatedTwoPointFiveMoveEvaluator()
  • branches/2520_PersistenceReintegration/HeuristicLab.Problems.PTSP/3.3/Moves/TwoPointFiveOpt/StochasticTwoPointFiveMultiMoveGenerator.cs

    r16453 r16462  
    2626using HeuristicLab.Optimization;
    2727using HeuristicLab.Parameters;
    28 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
     28using HEAL.Fossil;
    2929
    3030namespace HeuristicLab.Problems.PTSP {
    3131  [Item("Stochastic 2.5-MultiMoveGenerator", "Randomly samples n from all possible inversion and shift moves (2.5-opt) from a given permutation.")]
    32   [StorableClass]
     32  [StorableType("C84AA7B3-887A-4E75-9237-60011BAEBCC6")]
    3333  public sealed class StochasticTwoPointFiveMultiMoveGenerator : TwoPointFiveMoveGenerator, IMultiMoveGenerator, IStochasticOperator {
    3434    public ILookupParameter<IRandom> RandomParameter {
     
    4545
    4646    [StorableConstructor]
    47     private StochasticTwoPointFiveMultiMoveGenerator(bool deserializing) : base(deserializing) { }
     47    private StochasticTwoPointFiveMultiMoveGenerator(StorableConstructorFlag _) : base(_) { }
    4848    private StochasticTwoPointFiveMultiMoveGenerator(StochasticTwoPointFiveMultiMoveGenerator original, Cloner cloner) : base(original, cloner) { }
    4949    public StochasticTwoPointFiveMultiMoveGenerator()
  • branches/2520_PersistenceReintegration/HeuristicLab.Problems.PTSP/3.3/Moves/TwoPointFiveOpt/StochasticTwoPointFiveSingleMoveGenerator.cs

    r16453 r16462  
    2626using HeuristicLab.Optimization;
    2727using HeuristicLab.Parameters;
    28 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
     28using HEAL.Fossil;
    2929
    3030namespace HeuristicLab.Problems.PTSP {
    3131  [Item("Stochastic 2.5-SingleMoveGenerator", "Randomly samples a single from all possible inversion and shift moves (2.5-opt) from a given permutation.")]
    32   [StorableClass]
     32  [StorableType("A3D496C5-3BB5-4263-8F33-0DAFFCAC1BAF")]
    3333  public sealed class StochasticTwoPointFiveSingleMoveGenerator : TwoPointFiveMoveGenerator, IStochasticOperator, ISingleMoveGenerator {
    3434    public ILookupParameter<IRandom> RandomParameter {
     
    3737
    3838    [StorableConstructor]
    39     private StochasticTwoPointFiveSingleMoveGenerator(bool deserializing) : base(deserializing) { }
     39    private StochasticTwoPointFiveSingleMoveGenerator(StorableConstructorFlag _) : base(_) { }
    4040    private StochasticTwoPointFiveSingleMoveGenerator(StochasticTwoPointFiveSingleMoveGenerator original, Cloner cloner) : base(original, cloner) { }
    4141    public StochasticTwoPointFiveSingleMoveGenerator()
  • branches/2520_PersistenceReintegration/HeuristicLab.Problems.PTSP/3.3/Moves/TwoPointFiveOpt/TwoPointFiveMove.cs

    r16453 r16462  
    2323using HeuristicLab.Core;
    2424using HeuristicLab.Encodings.PermutationEncoding;
    25 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
     25using HEAL.Fossil;
    2626
    2727namespace HeuristicLab.Problems.PTSP {
    2828  [Item("2.5-Move", "Represents a 2.5-move.")]
    29   [StorableClass]
     29  [StorableType("CAC6762D-DFF1-4B66-BAC7-FBCED4A52305")]
    3030  public sealed class TwoPointFiveMove : Item {
    3131    [Storable]
     
    3939
    4040    [StorableConstructor]
    41     public TwoPointFiveMove() : this(-1, -1, null, true) { }
    42     private TwoPointFiveMove(bool deserializing) : base(deserializing) { }
     41    private TwoPointFiveMove(StorableConstructorFlag _) : base(_) { }
    4342    private TwoPointFiveMove(TwoPointFiveMove original, Cloner cloner)
    4443      : base(original, cloner) {
  • branches/2520_PersistenceReintegration/HeuristicLab.Problems.PTSP/3.3/Moves/TwoPointFiveOpt/TwoPointFiveMoveGenerator.cs

    r16453 r16462  
    2626using HeuristicLab.Optimization;
    2727using HeuristicLab.Parameters;
    28 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
     28using HEAL.Fossil;
    2929
    3030
    3131namespace HeuristicLab.Problems.PTSP {
    3232  [Item("TwoPointFiveMoveGenerator", "Base class for all inversion and shift (2.5-opt) move generators.")]
    33   [StorableClass]
     33  [StorableType("955C469C-4D77-4168-A428-03C39BACF9AD")]
    3434  public abstract class TwoPointFiveMoveGenerator : SingleSuccessorOperator, ITwoPointFiveMoveOperator, IMoveGenerator {
    3535    public override bool CanChangeName {
     
    4545
    4646    [StorableConstructor]
    47     protected TwoPointFiveMoveGenerator(bool deserializing) : base(deserializing) { }
     47    protected TwoPointFiveMoveGenerator(StorableConstructorFlag _) : base(_) { }
    4848    protected TwoPointFiveMoveGenerator(TwoPointFiveMoveGenerator original, Cloner cloner) : base(original, cloner) { }
    4949    protected TwoPointFiveMoveGenerator()
  • branches/2520_PersistenceReintegration/HeuristicLab.Problems.PTSP/3.3/Moves/TwoPointFiveOpt/TwoPointFiveMoveMaker.cs

    r16453 r16462  
    2727using HeuristicLab.Optimization;
    2828using HeuristicLab.Parameters;
    29 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
     29using HEAL.Fossil;
    3030
    3131namespace HeuristicLab.Problems.PTSP {
    3232  [Item("TwoPointFiveMoveMaker", "Peforms an inversion and shift (2.5-opt) on a given permutation and updates the quality.")]
    33   [StorableClass]
     33  [StorableType("6D5923B3-47CA-47AF-8C93-9BA7134BE5BA")]
    3434  public class TwoPointFiveMoveMaker : SingleSuccessorOperator, ITwoPointFiveMoveOperator, IMoveMaker {
    3535    public override bool CanChangeName {
     
    5151
    5252    [StorableConstructor]
    53     protected TwoPointFiveMoveMaker(bool deserializing) : base(deserializing) { }
     53    protected TwoPointFiveMoveMaker(StorableConstructorFlag _) : base(_) { }
    5454    protected TwoPointFiveMoveMaker(TwoPointFiveMoveMaker original, Cloner cloner) : base(original, cloner) { }
    5555    public TwoPointFiveMoveMaker()
Note: See TracChangeset for help on using the changeset viewer.