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
Location:
branches/2520_PersistenceReintegration/HeuristicLab.Algorithms.TabuSearch/3.3
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • branches/2520_PersistenceReintegration/HeuristicLab.Algorithms.TabuSearch/3.3/HeuristicLab.Algorithms.TabuSearch-3.3.csproj

    r16454 r16462  
    102102      <HintPath>..\..\packages\Google.Protobuf.3.6.1\lib\net45\Google.Protobuf.dll</HintPath>
    103103    </Reference>
    104     <Reference Include="HEAL.Fossil, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
     104    <Reference Include="HEAL.Fossil, Version=1.0.0.0, Culture=neutral, PublicKeyToken=ba48961d6f65dcec, processorArchitecture=MSIL">
    105105      <HintPath>..\..\packages\HEAL.Fossil.1.0.0\lib\netstandard2.0\HEAL.Fossil.dll</HintPath>
    106106    </Reference>
  • branches/2520_PersistenceReintegration/HeuristicLab.Algorithms.TabuSearch/3.3/TabuListCreator.cs

    r16453 r16462  
    2424using HeuristicLab.Operators;
    2525using HeuristicLab.Parameters;
    26 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
     26using HEAL.Fossil;
    2727
    2828namespace HeuristicLab.Algorithms.TabuSearch {
    2929  [Item("TabuListCreator", "An operator that creates a new empty tabu list. It can also replace an existing tabu list with a new empty one.")]
    30   [StorableClass]
     30  [StorableType("F199F8AB-35BA-45EB-A7E9-F6352FC053E3")]
    3131  public class TabuListCreator : SingleSuccessorOperator {
    3232    public ValueLookupParameter<ItemList<IItem>> TabuListParameter {
     
    4141
    4242    [StorableConstructor]
    43     protected TabuListCreator(bool deserializing) : base(deserializing) { }
     43    protected TabuListCreator(StorableConstructorFlag _) : base(_) { }
    4444    protected TabuListCreator(TabuListCreator original, Cloner cloner)
    4545      : base(original, cloner) {
  • branches/2520_PersistenceReintegration/HeuristicLab.Algorithms.TabuSearch/3.3/TabuNeighborhoodAnalyzer.cs

    r16453 r16462  
    2727using HeuristicLab.Optimization;
    2828using HeuristicLab.Parameters;
    29 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
     29using HEAL.Fossil;
    3030
    3131namespace HeuristicLab.Algorithms.TabuSearch {
    32   [StorableClass]
     32  [StorableType("C5A3D76E-4E1F-472A-8727-D8506F3BEFEA")]
    3333  [Item("TabuNeighborhoodAnalyzer", "Analyzes the tabu neighborhood")]
    3434  public class TabuNeighborhoodAnalyzer : SingleSuccessorOperator, IAnalyzer {
     
    4848
    4949    [StorableConstructor]
    50     protected TabuNeighborhoodAnalyzer(bool deserializing) : base(deserializing) { }
     50    protected TabuNeighborhoodAnalyzer(StorableConstructorFlag _) : base(_) { }
    5151    protected TabuNeighborhoodAnalyzer(TabuNeighborhoodAnalyzer original, Cloner cloner)
    5252      : base(original, cloner) {
  • branches/2520_PersistenceReintegration/HeuristicLab.Algorithms.TabuSearch/3.3/TabuSearch.cs

    r16453 r16462  
    3131using HeuristicLab.Optimization.Operators;
    3232using HeuristicLab.Parameters;
    33 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
     33using HEAL.Fossil;
    3434using HeuristicLab.Random;
    3535
     
    3737  [Item("Tabu Search (TS)", "A tabu search algorithm.")]
    3838  [Creatable(CreatableAttribute.Categories.SingleSolutionAlgorithms, Priority = 120)]
    39   [StorableClass]
     39  [StorableType("CF028C58-BE6D-4F74-96DD-B1E2CFAD5AA0")]
    4040  public sealed class TabuSearch : HeuristicOptimizationEngineAlgorithm, IStorableContent {
    4141    public string Filename { get; set; }
     
    205205    }
    206206    [StorableConstructor]
    207     private TabuSearch(bool deserializing) : base(deserializing) { }
     207    private TabuSearch(StorableConstructorFlag _) : base(_) { }
    208208    [StorableHook(HookType.AfterDeserialization)]
    209209    private void AfterDeserialization() {
  • branches/2520_PersistenceReintegration/HeuristicLab.Algorithms.TabuSearch/3.3/TabuSearchMainLoop.cs

    r16453 r16462  
    2727using HeuristicLab.Optimization.Operators;
    2828using HeuristicLab.Parameters;
    29 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
     29using HEAL.Fossil;
    3030using HeuristicLab.Selection;
    3131
     
    3535  /// </summary>
    3636  [Item("TabuSearchMainLoop", "An operator which represents the main loop of a tabu search.")]
    37   [StorableClass]
     37  [StorableType("85033FBD-B9BA-4450-AA25-B1BEE1B0178D")]
    3838  public sealed class TabuSearchMainLoop : AlgorithmOperator {
    3939    #region Parameter properties
     
    8989
    9090    [StorableConstructor]
    91     private TabuSearchMainLoop(bool deserializing) : base(deserializing) { }
     91    private TabuSearchMainLoop(StorableConstructorFlag _) : base(_) { }
    9292    public TabuSearchMainLoop()
    9393      : base() {
  • branches/2520_PersistenceReintegration/HeuristicLab.Algorithms.TabuSearch/3.3/TabuSelector.cs

    r16453 r16462  
    2626using HeuristicLab.Data;
    2727using HeuristicLab.Parameters;
    28 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
     28using HEAL.Fossil;
    2929using HeuristicLab.Selection;
    3030
     
    3737  /// </remarks>
    3838  [Item("TabuSelector", "An operator that selects the best move that is either not tabu or satisfies the aspiration criterion. It expects the move subscopes to be sorted by the qualities of the moves (the best move is first).")]
    39   [StorableClass]
     39  [StorableType("63A67432-6076-4BDE-B6D5-C9919FAA48DE")]
    4040  public class TabuSelector : Selector {
    4141    /// <summary>
     
    8282
    8383    [StorableConstructor]
    84     protected TabuSelector(bool deserializing) : base(deserializing) { }
     84    protected TabuSelector(StorableConstructorFlag _) : base(_) { }
    8585    protected TabuSelector(TabuSelector original, Cloner cloner)
    8686      : base(original, cloner) {
Note: See TracChangeset for help on using the changeset viewer.