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.ParameterOptimization/3.3
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • branches/2520_PersistenceReintegration/HeuristicLab.Problems.ParameterOptimization/3.3/BestSolutionAnalyzer.cs

    r16453 r16462  
    2828using HeuristicLab.Optimization;
    2929using HeuristicLab.Parameters;
    30 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
     30using HEAL.Fossil;
    3131
    3232namespace HeuristicLab.Problems.ParameterOptimization {
    3333  [Item("BestSolutionAnalyzer", "Tracks the best parameter vector solution of the current algorithm run.")]
    34   [StorableClass]
     34  [StorableType("A39363D6-8ACE-44AF-99E1-643928DCA6B9")]
    3535  public class BestSolutionAnalyzer : SingleSuccessorOperator, IAnalyzer {
    3636    private const string MaximizationParameterName = "Maximization";
     
    7171
    7272    [StorableConstructor]
    73     protected BestSolutionAnalyzer(bool deserializing) : base(deserializing) { }
     73    protected BestSolutionAnalyzer(StorableConstructorFlag _) : base(_) { }
    7474    protected BestSolutionAnalyzer(BestSolutionAnalyzer original, Cloner cloner)
    7575      : base(original, cloner) { }
  • branches/2520_PersistenceReintegration/HeuristicLab.Problems.ParameterOptimization/3.3/BestSolutionsAnalyzer.cs

    r16453 r16462  
    2929using HeuristicLab.Optimization;
    3030using HeuristicLab.Parameters;
    31 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
     31using HEAL.Fossil;
    3232
    3333namespace HeuristicLab.Problems.ParameterOptimization {
    3434  [Item("BestSolutionsAnalyzer", "Tracks the best parameter vector solutions of the current algorithm run.")]
    35   [StorableClass]
     35  [StorableType("4882160E-6022-4AFC-AD84-9D7D7FF55562")]
    3636  public class BestSolutionsAnalyzer : SingleSuccessorOperator, IAnalyzer {
    3737    private const string MaximizationParameterName = "Maximization";
     
    7676
    7777    [StorableConstructor]
    78     protected BestSolutionsAnalyzer(bool deserializing) : base(deserializing) { }
     78    protected BestSolutionsAnalyzer(StorableConstructorFlag _) : base(_) { }
    7979    protected BestSolutionsAnalyzer(BestSolutionsAnalyzer original, Cloner cloner)
    8080      : base(original, cloner) { }
  • branches/2520_PersistenceReintegration/HeuristicLab.Problems.ParameterOptimization/3.3/HeuristicLab.Problems.ParameterOptimization-3.3.csproj

    r16454 r16462  
    8383      <HintPath>..\..\packages\Google.Protobuf.3.6.1\lib\net45\Google.Protobuf.dll</HintPath>
    8484    </Reference>
    85     <Reference Include="HEAL.Fossil, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
     85    <Reference Include="HEAL.Fossil, Version=1.0.0.0, Culture=neutral, PublicKeyToken=ba48961d6f65dcec, processorArchitecture=MSIL">
    8686      <HintPath>..\..\packages\HEAL.Fossil.1.0.0\lib\netstandard2.0\HEAL.Fossil.dll</HintPath>
    8787    </Reference>
  • branches/2520_PersistenceReintegration/HeuristicLab.Problems.ParameterOptimization/3.3/ParameterOptimizationProblem.cs

    r16453 r16462  
    3030using HeuristicLab.Optimization.Operators;
    3131using HeuristicLab.Parameters;
    32 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
     32using HEAL.Fossil;
    3333using HeuristicLab.PluginInfrastructure;
    3434
    3535namespace HeuristicLab.Problems.ParameterOptimization {
    3636  [Item("Parameter Optimization Problem", "A base class for other problems for the optimization of a parameter vector.")]
    37   [StorableClass]
     37  [StorableType("B1F529FE-483C-4EF2-9306-2F6A0833EEAC")]
    3838  public abstract class ParameterOptimizationProblem : SingleObjectiveHeuristicOptimizationProblem<IParameterVectorEvaluator, IRealVectorCreator>, IStorableContent {
    3939    public string Filename { get; set; }
     
    7979
    8080    [StorableConstructor]
    81     protected ParameterOptimizationProblem(bool deserializing) : base(deserializing) { }
     81    protected ParameterOptimizationProblem(StorableConstructorFlag _) : base(_) { }
    8282    protected ParameterOptimizationProblem(ParameterOptimizationProblem original, Cloner cloner)
    8383      : base(original, cloner) {
  • branches/2520_PersistenceReintegration/HeuristicLab.Problems.ParameterOptimization/3.3/ParameterVectorEvaluator.cs

    r16453 r16462  
    2626using HeuristicLab.Operators;
    2727using HeuristicLab.Parameters;
    28 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
     28using HEAL.Fossil;
    2929
    3030namespace HeuristicLab.Problems.ParameterOptimization {
    3131  [Item("ParameterVectorEvaluator", "An base class for other parameter vector evaluators.")]
    32   [StorableClass]
     32  [StorableType("4AE154F0-068C-4CC0-873D-22BE3B7CACC9")]
    3333  public abstract class ParameterVectorEvaluator : SingleSuccessorOperator, IParameterVectorEvaluator {
    3434    private const string QualityParameterName = "Quality";
     
    5454
    5555    [StorableConstructor]
    56     protected ParameterVectorEvaluator(bool deserializing) : base(deserializing) { }
     56    protected ParameterVectorEvaluator(StorableConstructorFlag _) : base(_) { }
    5757    protected ParameterVectorEvaluator(ParameterVectorEvaluator original, Cloner cloner)
    5858      : base(original, cloner) {
Note: See TracChangeset for help on using the changeset viewer.