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.Algorithms.ScatterSearch/3.3
Files:
7 edited

Legend:

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

    r16454 r16462  
    8686      <HintPath>..\..\packages\Google.Protobuf.3.6.1\lib\net45\Google.Protobuf.dll</HintPath>
    8787    </Reference>
    88     <Reference Include="HEAL.Fossil, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
     88    <Reference Include="HEAL.Fossil, Version=1.0.0.0, Culture=neutral, PublicKeyToken=ba48961d6f65dcec, processorArchitecture=MSIL">
    8989      <HintPath>..\..\packages\HEAL.Fossil.1.0.0\lib\netstandard2.0\HEAL.Fossil.dll</HintPath>
    9090    </Reference>
  • branches/2520_PersistenceReintegration/HeuristicLab.Algorithms.ScatterSearch/3.3/OffspringProcessor.cs

    r16453 r16462  
    2424using HeuristicLab.Operators;
    2525using HeuristicLab.Parameters;
    26 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
     26using HEAL.Fossil;
    2727
    2828namespace HeuristicLab.Algorithms.ScatterSearch {
     
    3131  /// </summary>
    3232  [Item("OffspringProcessor", "An operator that creates a subscope with subscopes for every variable in the current scope.")]
    33   [StorableClass]
     33  [StorableType("A89D522A-CAFF-4899-A24D-5EB463EEB03F")]
    3434  public sealed class OffspringProcessor : SingleSuccessorOperator {
    3535    #region Parameter properties
     
    4646
    4747    [StorableConstructor]
    48     private OffspringProcessor(bool deserializing) : base(deserializing) { }
     48    private OffspringProcessor(StorableConstructorFlag _) : base(_) { }
    4949    private OffspringProcessor(OffspringProcessor original, Cloner cloner) : base(original, cloner) { }
    5050    public OffspringProcessor()
  • branches/2520_PersistenceReintegration/HeuristicLab.Algorithms.ScatterSearch/3.3/PopulationRebuildMethod.cs

    r16453 r16462  
    2727using HeuristicLab.Optimization;
    2828using HeuristicLab.Parameters;
    29 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
     29using HEAL.Fossil;
    3030
    3131namespace HeuristicLab.Algorithms.ScatterSearch {
     
    3434  /// </summary>
    3535  [Item("PopulationRebuildMethod", "An operator that updates the reference set and rebuilds the population.")]
    36   [StorableClass]
     36  [StorableType("B993B7E3-E510-4211-AD13-90517C810E34")]
    3737  public sealed class PopulationRebuildMethod : SingleSuccessorOperator, ISingleObjectiveOperator {
    3838    #region Parameter properties
     
    7676
    7777    [StorableConstructor]
    78     private PopulationRebuildMethod(bool deserializing) : base(deserializing) { }
     78    private PopulationRebuildMethod(StorableConstructorFlag _) : base(_) { }
    7979    private PopulationRebuildMethod(PopulationRebuildMethod original, Cloner cloner) : base(original, cloner) { }
    8080    public PopulationRebuildMethod()
  • branches/2520_PersistenceReintegration/HeuristicLab.Algorithms.ScatterSearch/3.3/ReferenceSetUpdateMethod.cs

    r16453 r16462  
    2828using HeuristicLab.Optimization;
    2929using HeuristicLab.Parameters;
    30 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
     30using HEAL.Fossil;
    3131
    3232namespace HeuristicLab.Algorithms.ScatterSearch {
     
    3535  /// </summary>
    3636  [Item("ReferenceSetUpdateMethod", "An operator that updates the reference set.")]
    37   [StorableClass]
     37  [StorableType("478625DC-87BD-4111-98D1-45A9939198C8")]
    3838  public sealed class ReferenceSetUpdateMethod : SingleSuccessorOperator {
    3939    #region Parameter properties
     
    5959
    6060    [StorableConstructor]
    61     private ReferenceSetUpdateMethod(bool deserializing) : base(deserializing) { }
     61    private ReferenceSetUpdateMethod(StorableConstructorFlag _) : base(_) { }
    6262    private ReferenceSetUpdateMethod(ReferenceSetUpdateMethod original, Cloner cloner) : base(original, cloner) { }
    6363    public ReferenceSetUpdateMethod()
  • branches/2520_PersistenceReintegration/HeuristicLab.Algorithms.ScatterSearch/3.3/ScatterSearch.cs

    r16453 r16462  
    3030using HeuristicLab.Optimization.Operators;
    3131using HeuristicLab.Parameters;
    32 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
     32using HEAL.Fossil;
    3333using HeuristicLab.Random;
    3434using HeuristicLab.Selection;
     
    4040  [Item("Scatter Search (SS)", "A scatter search algorithm.")]
    4141  [Creatable(CreatableAttribute.Categories.PopulationBasedAlgorithms, Priority = 500)]
    42   [StorableClass]
     42  [StorableType("B0A218C1-8D92-4BDF-AAB7-C6396612C26B")]
    4343  public sealed class ScatterSearch : HeuristicOptimizationEngineAlgorithm, IStorableContent {
    4444    public string Filename { get; set; }
     
    157157
    158158    [StorableConstructor]
    159     private ScatterSearch(bool deserializing) : base(deserializing) { }
     159    private ScatterSearch(StorableConstructorFlag _) : base(_) { }
    160160    [StorableHook(HookType.AfterDeserialization)]
    161161    private void AfterDeserialization() {
  • branches/2520_PersistenceReintegration/HeuristicLab.Algorithms.ScatterSearch/3.3/ScatterSearchMainLoop.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("ScatterSearchMainLoop", "An operator which represents a scatter search.")]
    37   [StorableClass]
     37  [StorableType("CDEB69B9-A0D9-4E84-80FD-347E16A1A8FE")]
    3838  public sealed class ScatterSearchMainLoop : AlgorithmOperator {
    3939    #region Parameter properties
     
    170170
    171171    [StorableConstructor]
    172     private ScatterSearchMainLoop(bool deserializing) : base(deserializing) { }
     172    private ScatterSearchMainLoop(StorableConstructorFlag _) : base(_) { }
    173173    private ScatterSearchMainLoop(ScatterSearchMainLoop original, Cloner cloner) : base(original, cloner) { }
    174174    public ScatterSearchMainLoop() : base() { Initialize(); }
  • branches/2520_PersistenceReintegration/HeuristicLab.Algorithms.ScatterSearch/3.3/SolutionPoolUpdateMethod.cs

    r16453 r16462  
    2828using HeuristicLab.Optimization;
    2929using HeuristicLab.Parameters;
    30 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
     30using HEAL.Fossil;
    3131
    3232namespace HeuristicLab.Algorithms.ScatterSearch {
     
    3535  /// </summary>
    3636  [Item("SolutionPoolUpdateMethod", "An operator that updates the solution pool.")]
    37   [StorableClass]
     37  [StorableType("F295B5C8-8551-4DFC-A38C-354E14CED2E3")]
    3838  public sealed class SolutionPoolUpdateMethod : SingleSuccessorOperator, ISingleObjectiveOperator {
    3939    #region Parameter properties
     
    7979
    8080    [StorableConstructor]
    81     private SolutionPoolUpdateMethod(bool deserializing) : base(deserializing) { }
     81    private SolutionPoolUpdateMethod(StorableConstructorFlag _) : base(_) { }
    8282    private SolutionPoolUpdateMethod(SolutionPoolUpdateMethod original, Cloner cloner) : base(original, cloner) { }
    8383    public SolutionPoolUpdateMethod()
Note: See TracChangeset for help on using the changeset viewer.