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.TestFunctions/3.3/MoveEvaluators
Files:
16 edited

Legend:

Unmodified
Added
Removed
  • branches/2520_PersistenceReintegration/HeuristicLab.Problems.TestFunctions/3.3/MoveEvaluators/AckleyAdditiveMoveEvaluator.cs

    r16453 r16462  
    2323using HeuristicLab.Core;
    2424using HeuristicLab.Encodings.RealVectorEncoding;
    25 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
     25using HEAL.Fossil;
    2626
    2727namespace HeuristicLab.Problems.TestFunctions {
    2828  [Item("AckleyAdditiveMoveEvaluator", "Class for evaluating an additive move on the Ackley function.")]
    29   [StorableClass]
     29  [StorableType("C28EF2FB-0EF2-4A69-910D-210A808A0420")]
    3030  public class AckleyAdditiveMoveEvaluator : AdditiveMoveEvaluator {
    3131    public override System.Type EvaluatorType {
     
    3434
    3535    [StorableConstructor]
    36     protected AckleyAdditiveMoveEvaluator(bool deserializing) : base(deserializing) { }
     36    protected AckleyAdditiveMoveEvaluator(StorableConstructorFlag _) : base(_) { }
    3737    protected AckleyAdditiveMoveEvaluator(AckleyAdditiveMoveEvaluator original, Cloner cloner) : base(original, cloner) { }
    3838    public AckleyAdditiveMoveEvaluator() : base() { }
  • branches/2520_PersistenceReintegration/HeuristicLab.Problems.TestFunctions/3.3/MoveEvaluators/AdditiveMoveEvaluator.cs

    r16453 r16462  
    2727using HeuristicLab.Operators;
    2828using HeuristicLab.Parameters;
    29 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
     29using HEAL.Fossil;
    3030
    3131namespace HeuristicLab.Problems.TestFunctions {
    3232  [Item("AdditiveMoveEvaluator", "Base class for evaluating an additive move.")]
    33   [StorableClass]
     33  [StorableType("3B4F3C57-78CE-4881-8E3B-6E784A495734")]
    3434  public abstract class AdditiveMoveEvaluator : SingleSuccessorOperator, ISingleObjectiveTestFunctionAdditiveMoveEvaluator {
    3535
     
    5353
    5454    [StorableConstructor]
    55     protected AdditiveMoveEvaluator(bool deserializing) : base(deserializing) { }
     55    protected AdditiveMoveEvaluator(StorableConstructorFlag _) : base(_) { }
    5656    protected AdditiveMoveEvaluator(AdditiveMoveEvaluator original, Cloner cloner) : base(original, cloner) { }
    5757    protected AdditiveMoveEvaluator()
  • branches/2520_PersistenceReintegration/HeuristicLab.Problems.TestFunctions/3.3/MoveEvaluators/BealeAdditiveMoveEvaluator.cs

    r16453 r16462  
    2323using HeuristicLab.Core;
    2424using HeuristicLab.Encodings.RealVectorEncoding;
    25 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
     25using HEAL.Fossil;
    2626
    2727namespace HeuristicLab.Problems.TestFunctions {
    2828  [Item("BealeAdditiveMoveEvaluator", "Class for evaluating an additive move on the Beale function.")]
    29   [StorableClass]
     29  [StorableType("1F069200-31A3-45B0-A9E1-86C501148550")]
    3030  public class BealeAdditiveMoveEvaluator : AdditiveMoveEvaluator {
    3131    public override System.Type EvaluatorType {
     
    3434
    3535    [StorableConstructor]
    36     protected BealeAdditiveMoveEvaluator(bool deserializing) : base(deserializing) { }
     36    protected BealeAdditiveMoveEvaluator(StorableConstructorFlag _) : base(_) { }
    3737    protected BealeAdditiveMoveEvaluator(BealeAdditiveMoveEvaluator original, Cloner cloner) : base(original, cloner) { }
    3838    public BealeAdditiveMoveEvaluator() : base() { }
  • branches/2520_PersistenceReintegration/HeuristicLab.Problems.TestFunctions/3.3/MoveEvaluators/BoothAdditiveMoveEvaluator.cs

    r16453 r16462  
    2323using HeuristicLab.Core;
    2424using HeuristicLab.Encodings.RealVectorEncoding;
    25 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
     25using HEAL.Fossil;
    2626
    2727namespace HeuristicLab.Problems.TestFunctions {
    2828  [Item("BoothAdditiveMoveEvaluator", "Class for evaluating an additive move on the Booth function.")]
    29   [StorableClass]
     29  [StorableType("869C2238-2423-42FC-A34E-54009D58365D")]
    3030  public class BoothAdditiveMoveEvaluator : AdditiveMoveEvaluator {
    3131    public override System.Type EvaluatorType {
     
    3434
    3535    [StorableConstructor]
    36     protected BoothAdditiveMoveEvaluator(bool deserializing) : base(deserializing) { }
     36    protected BoothAdditiveMoveEvaluator(StorableConstructorFlag _) : base(_) { }
    3737    protected BoothAdditiveMoveEvaluator(BoothAdditiveMoveEvaluator original, Cloner cloner) : base(original, cloner) { }
    3838    public BoothAdditiveMoveEvaluator() : base() { }
  • branches/2520_PersistenceReintegration/HeuristicLab.Problems.TestFunctions/3.3/MoveEvaluators/GriewankAdditiveMoveEvaluator.cs

    r16453 r16462  
    2323using HeuristicLab.Core;
    2424using HeuristicLab.Encodings.RealVectorEncoding;
    25 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
     25using HEAL.Fossil;
    2626
    2727namespace HeuristicLab.Problems.TestFunctions {
    2828  [Item("GriewankAdditiveMoveEvaluator", "Class for evaluating an additive move on the Griewank function.")]
    29   [StorableClass]
     29  [StorableType("A3AC4364-7F3A-431E-8AE0-A1B46EC9FA4D")]
    3030  public class GriewankAdditiveMoveEvaluator : AdditiveMoveEvaluator {
    3131    public override System.Type EvaluatorType {
     
    3434
    3535    [StorableConstructor]
    36     protected GriewankAdditiveMoveEvaluator(bool deserializing) : base(deserializing) { }
     36    protected GriewankAdditiveMoveEvaluator(StorableConstructorFlag _) : base(_) { }
    3737    protected GriewankAdditiveMoveEvaluator(GriewankAdditiveMoveEvaluator original, Cloner cloner) : base(original, cloner) { }
    3838    public GriewankAdditiveMoveEvaluator() : base() { }
  • branches/2520_PersistenceReintegration/HeuristicLab.Problems.TestFunctions/3.3/MoveEvaluators/LevyAdditiveMoveEvaluator.cs

    r16453 r16462  
    2323using HeuristicLab.Core;
    2424using HeuristicLab.Encodings.RealVectorEncoding;
    25 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
     25using HEAL.Fossil;
    2626
    2727namespace HeuristicLab.Problems.TestFunctions {
    2828  [Item("LevyAdditiveMoveEvaluator", "Class for evaluating an additive move on the Levy function.")]
    29   [StorableClass]
     29  [StorableType("EF50460A-400C-47DE-96D0-51107E353467")]
    3030  public class LevyAdditiveMoveEvaluator : AdditiveMoveEvaluator {
    3131    public override System.Type EvaluatorType {
     
    3434
    3535    [StorableConstructor]
    36     protected LevyAdditiveMoveEvaluator(bool deserializing) : base(deserializing) { }
     36    protected LevyAdditiveMoveEvaluator(StorableConstructorFlag _) : base(_) { }
    3737    protected LevyAdditiveMoveEvaluator(LevyAdditiveMoveEvaluator original, Cloner cloner) : base(original, cloner) { }
    3838    public LevyAdditiveMoveEvaluator() : base() { }
  • branches/2520_PersistenceReintegration/HeuristicLab.Problems.TestFunctions/3.3/MoveEvaluators/MatyasAdditiveMoveEvaluator.cs

    r16453 r16462  
    2323using HeuristicLab.Core;
    2424using HeuristicLab.Encodings.RealVectorEncoding;
    25 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
     25using HEAL.Fossil;
    2626
    2727namespace HeuristicLab.Problems.TestFunctions {
    2828  [Item("MatyasAdditiveMoveEvaluator", "Class for evaluating an additive move on the Matyas function.")]
    29   [StorableClass]
     29  [StorableType("7B8A70DA-019D-4724-8AB8-6F42D60FB398")]
    3030  public class MatyasAdditiveMoveEvaluator : AdditiveMoveEvaluator {
    3131    public override System.Type EvaluatorType {
     
    3434
    3535    [StorableConstructor]
    36     protected MatyasAdditiveMoveEvaluator(bool deserializing) : base(deserializing) { }
     36    protected MatyasAdditiveMoveEvaluator(StorableConstructorFlag _) : base(_) { }
    3737    protected MatyasAdditiveMoveEvaluator(MatyasAdditiveMoveEvaluator original, Cloner cloner) : base(original, cloner) { }
    3838    public MatyasAdditiveMoveEvaluator() : base() { }
  • branches/2520_PersistenceReintegration/HeuristicLab.Problems.TestFunctions/3.3/MoveEvaluators/MultinormalAdditiveMoveEvaluator.cs

    r16453 r16462  
    2525using HeuristicLab.Encodings.RealVectorEncoding;
    2626using HeuristicLab.Parameters;
    27 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
     27using HEAL.Fossil;
    2828using HeuristicLab.Problems.TestFunctions.Evaluators;
    2929
    3030namespace HeuristicLab.Problems.TestFunctions {
    3131  [Item("MultinormalAdditiveMoveEvaluator", "Class for evaluating an additive move on the multinormal function.")]
    32   [StorableClass]
     32  [StorableType("BF3794EF-E2C1-457C-8460-75EE179B0B30")]
    3333  public class MultinormalAdditiveMoveEvaluator : AdditiveMoveEvaluator {
    3434    public LookupParameter<ISingleObjectiveTestFunctionProblemEvaluator> EvaluatorParameter {
     
    3737
    3838    [StorableConstructor]
    39     protected MultinormalAdditiveMoveEvaluator(bool deserializing) : base(deserializing) { }
     39    protected MultinormalAdditiveMoveEvaluator(StorableConstructorFlag _) : base(_) { }
    4040    protected MultinormalAdditiveMoveEvaluator(MultinormalAdditiveMoveEvaluator original, Cloner cloner) : base(original, cloner) { }
    4141    public MultinormalAdditiveMoveEvaluator() {
  • branches/2520_PersistenceReintegration/HeuristicLab.Problems.TestFunctions/3.3/MoveEvaluators/RandomAdditiveMoveEvaluator.cs

    r16453 r16462  
    2424using HeuristicLab.Encodings.RealVectorEncoding;
    2525using HeuristicLab.Parameters;
    26 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
     26using HEAL.Fossil;
    2727
    2828namespace HeuristicLab.Problems.TestFunctions {
    2929  [Item("RandomAdditiveMoveEvaluator", "Class for evaluating an additive move on the Random function.")]
    30   [StorableClass]
     30  [StorableType("B8C621D3-6F11-417C-947B-F02484987313")]
    3131  public class RandomAdditiveMoveEvaluator : AdditiveMoveEvaluator {
    3232    public override System.Type EvaluatorType {
     
    3939
    4040    [StorableConstructor]
    41     protected RandomAdditiveMoveEvaluator(bool deserializing) : base(deserializing) { }
     41    protected RandomAdditiveMoveEvaluator(StorableConstructorFlag _) : base(_) { }
    4242    protected RandomAdditiveMoveEvaluator(RandomAdditiveMoveEvaluator original, Cloner cloner) : base(original, cloner) { }
    4343    public RandomAdditiveMoveEvaluator()
  • branches/2520_PersistenceReintegration/HeuristicLab.Problems.TestFunctions/3.3/MoveEvaluators/RastriginAdditiveMoveEvaluator.cs

    r16453 r16462  
    2525using HeuristicLab.Encodings.RealVectorEncoding;
    2626using HeuristicLab.Parameters;
    27 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
     27using HEAL.Fossil;
    2828
    2929namespace HeuristicLab.Problems.TestFunctions {
    3030  [Item("RastriginAdditiveMoveEvaluator", "Class for evaluating an additive move on the Rastrigin function.")]
    31   [StorableClass]
     31  [StorableType("F4D22E9B-6D46-4F7A-AABA-A77048F879DB")]
    3232  public class RastriginAdditiveMoveEvaluator : AdditiveMoveEvaluator, IRastriginMoveEvaluator {
    3333    public override System.Type EvaluatorType {
     
    4949
    5050    [StorableConstructor]
    51     protected RastriginAdditiveMoveEvaluator(bool deserializing) : base(deserializing) { }
     51    protected RastriginAdditiveMoveEvaluator(StorableConstructorFlag _) : base(_) { }
    5252    protected RastriginAdditiveMoveEvaluator(RastriginAdditiveMoveEvaluator original, Cloner cloner) : base(original, cloner) { }
    5353    public RastriginAdditiveMoveEvaluator() {
  • branches/2520_PersistenceReintegration/HeuristicLab.Problems.TestFunctions/3.3/MoveEvaluators/RealVectorAdditiveMoveWrapper.cs

    r16453 r16462  
    3434    private RealVector vector;
    3535
    36     private RealVectorAdditiveMoveWrapper(bool deserializing) : base(deserializing) { }
    3736    private RealVectorAdditiveMoveWrapper(RealVectorAdditiveMoveWrapper original, Cloner cloner)
    3837      : base(original, cloner) {
  • branches/2520_PersistenceReintegration/HeuristicLab.Problems.TestFunctions/3.3/MoveEvaluators/RosenbrockAdditiveMoveEvaluator.cs

    r16453 r16462  
    2323using HeuristicLab.Core;
    2424using HeuristicLab.Encodings.RealVectorEncoding;
    25 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
     25using HEAL.Fossil;
    2626
    2727namespace HeuristicLab.Problems.TestFunctions {
    2828  [Item("RosenbrockAdditiveMoveEvaluator", "Class for evaluating an additive move on the Rosenbrock function.")]
    29   [StorableClass]
     29  [StorableType("A4CE5DFB-BC5C-4024-AD0F-7E23D6A50FBD")]
    3030  public class RosenbrockAdditiveMoveEvaluator : AdditiveMoveEvaluator {
    3131    public override System.Type EvaluatorType {
     
    3434
    3535    [StorableConstructor]
    36     protected RosenbrockAdditiveMoveEvaluator(bool deserializing) : base(deserializing) { }
     36    protected RosenbrockAdditiveMoveEvaluator(StorableConstructorFlag _) : base(_) { }
    3737    protected RosenbrockAdditiveMoveEvaluator(RosenbrockAdditiveMoveEvaluator original, Cloner cloner) : base(original, cloner) { }
    3838    public RosenbrockAdditiveMoveEvaluator() : base() { }
  • branches/2520_PersistenceReintegration/HeuristicLab.Problems.TestFunctions/3.3/MoveEvaluators/SchwefelAdditiveMoveEvaluator.cs

    r16453 r16462  
    2323using HeuristicLab.Core;
    2424using HeuristicLab.Encodings.RealVectorEncoding;
    25 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
     25using HEAL.Fossil;
    2626
    2727namespace HeuristicLab.Problems.TestFunctions {
    2828  [Item("SchwefelAdditiveMoveEvaluator", "Class for evaluating an additive move on the Schwefel function.")]
    29   [StorableClass]
     29  [StorableType("BBCD57E2-4E1E-44E7-8943-8CCA5A6FFBB9")]
    3030  public class SchwefelAdditiveMoveEvaluator : AdditiveMoveEvaluator {
    3131    public override System.Type EvaluatorType {
     
    3434
    3535    [StorableConstructor]
    36     protected SchwefelAdditiveMoveEvaluator(bool deserializing) : base(deserializing) { }
     36    protected SchwefelAdditiveMoveEvaluator(StorableConstructorFlag _) : base(_) { }
    3737    protected SchwefelAdditiveMoveEvaluator(SchwefelAdditiveMoveEvaluator original, Cloner cloner) : base(original, cloner) { }
    3838    public SchwefelAdditiveMoveEvaluator() : base() { }
  • branches/2520_PersistenceReintegration/HeuristicLab.Problems.TestFunctions/3.3/MoveEvaluators/SphereAdditiveMoveEvaluator.cs

    r16453 r16462  
    2525using HeuristicLab.Encodings.RealVectorEncoding;
    2626using HeuristicLab.Parameters;
    27 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
     27using HEAL.Fossil;
    2828
    2929namespace HeuristicLab.Problems.TestFunctions {
    3030  [Item("SphereAdditiveMoveEvaluator", "Class for evaluating an additive move on the Sphere function.")]
    31   [StorableClass]
     31  [StorableType("4A2D54BA-31B3-4A2E-BDCA-D33C0C79E75B")]
    3232  public class SphereAdditiveMoveEvaluator : AdditiveMoveEvaluator, ISphereMoveEvaluator {
    3333    /// <summary>
     
    6363
    6464    [StorableConstructor]
    65     protected SphereAdditiveMoveEvaluator(bool deserializing) : base(deserializing) { }
     65    protected SphereAdditiveMoveEvaluator(StorableConstructorFlag _) : base(_) { }
    6666    protected SphereAdditiveMoveEvaluator(SphereAdditiveMoveEvaluator original, Cloner cloner) : base(original, cloner) { }
    6767    public SphereAdditiveMoveEvaluator() {
  • branches/2520_PersistenceReintegration/HeuristicLab.Problems.TestFunctions/3.3/MoveEvaluators/SumSquaresAdditiveMoveEvaluator.cs

    r16453 r16462  
    2323using HeuristicLab.Core;
    2424using HeuristicLab.Encodings.RealVectorEncoding;
    25 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
     25using HEAL.Fossil;
    2626
    2727namespace HeuristicLab.Problems.TestFunctions {
    2828  [Item("SumSquaresAdditiveMoveEvaluator", "Class for evaluating an additive move on the SumSquares function.")]
    29   [StorableClass]
     29  [StorableType("83294D8D-7286-4B95-87B8-CE55528B46E5")]
    3030  public class SumSquaresAdditiveMoveEvaluator : AdditiveMoveEvaluator {
    3131    public override System.Type EvaluatorType {
     
    3434
    3535    [StorableConstructor]
    36     protected SumSquaresAdditiveMoveEvaluator(bool deserializing) : base(deserializing) { }
     36    protected SumSquaresAdditiveMoveEvaluator(StorableConstructorFlag _) : base(_) { }
    3737    protected SumSquaresAdditiveMoveEvaluator(SumSquaresAdditiveMoveEvaluator original, Cloner cloner) : base(original, cloner) { }
    3838    public SumSquaresAdditiveMoveEvaluator() : base() { }
  • branches/2520_PersistenceReintegration/HeuristicLab.Problems.TestFunctions/3.3/MoveEvaluators/ZakharovAdditiveMoveEvaluator.cs

    r16453 r16462  
    2323using HeuristicLab.Core;
    2424using HeuristicLab.Encodings.RealVectorEncoding;
    25 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
     25using HEAL.Fossil;
    2626
    2727namespace HeuristicLab.Problems.TestFunctions {
    2828  [Item("ZakharovAdditiveMoveEvaluator", "Class for evaluating an additive move on the Zakharov function.")]
    29   [StorableClass]
     29  [StorableType("76A5302B-9A7F-4334-8180-3F2A0537F4E2")]
    3030  public class ZakharovAdditiveMoveEvaluator : AdditiveMoveEvaluator {
    3131    public override System.Type EvaluatorType {
     
    3434
    3535    [StorableConstructor]
    36     protected ZakharovAdditiveMoveEvaluator(bool deserializing) : base(deserializing) { }
     36    protected ZakharovAdditiveMoveEvaluator(StorableConstructorFlag _) : base(_) { }
    3737    protected ZakharovAdditiveMoveEvaluator(ZakharovAdditiveMoveEvaluator original, Cloner cloner) : base(original, cloner) { }
    3838    public ZakharovAdditiveMoveEvaluator() : base() { }
Note: See TracChangeset for help on using the changeset viewer.