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.Knapsack/3.3/MoveEvaluators
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/2520_PersistenceReintegration/HeuristicLab.Problems.Knapsack/3.3/MoveEvaluators/KnapsackMoveEvaluator.cs

    r16453 r16462  
    2525using HeuristicLab.Encodings.BinaryVectorEncoding;
    2626using HeuristicLab.Operators;
    27 using HeuristicLab.Optimization;
    2827using HeuristicLab.Parameters;
    29 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
     28using HEAL.Fossil;
    3029
    3130namespace HeuristicLab.Problems.Knapsack {
     
    3433  /// </summary>
    3534  [Item("KnapsackMoveEvaluator", "A base class for operators which evaluate Knapsack moves.")]
    36   [StorableClass]
     35  [StorableType("F953FC74-8688-48E5-856D-E9D8A2411CA0")]
    3736  public abstract class KnapsackMoveEvaluator : SingleSuccessorOperator, IKnapsackMoveEvaluator, IBinaryVectorMoveOperator {
    3837    public ILookupParameter<DoubleValue> QualityParameter {
     
    5958
    6059    [StorableConstructor]
    61     protected KnapsackMoveEvaluator(bool deserializing) : base(deserializing) { }
     60    protected KnapsackMoveEvaluator(StorableConstructorFlag _) : base(_) { }
    6261    protected KnapsackMoveEvaluator(KnapsackMoveEvaluator original, Cloner cloner) : base(original, cloner) { }
    6362    protected KnapsackMoveEvaluator()
  • branches/2520_PersistenceReintegration/HeuristicLab.Problems.Knapsack/3.3/MoveEvaluators/KnapsackOneBitflipMoveEvaluator.cs

    r16453 r16462  
    2525using HeuristicLab.Encodings.BinaryVectorEncoding;
    2626using HeuristicLab.Parameters;
    27 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
     27using HEAL.Fossil;
    2828
    2929namespace HeuristicLab.Problems.Knapsack {
     
    3232  /// </summary>
    3333  [Item("KnapsackOneBitflipMoveEvaluator", "Base class for evaluating one bitflip moves.")]
    34   [StorableClass]
     34  [StorableType("E1BB4CCB-E9C3-4A16-8F03-3F619D4A4B0A")]
    3535  public class KnapsackOneBitflipMoveEvaluator : KnapsackMoveEvaluator, IOneBitflipMoveOperator {
    3636    public ILookupParameter<OneBitflipMove> OneBitflipMoveParameter {
     
    3939
    4040    [StorableConstructor]
    41     protected KnapsackOneBitflipMoveEvaluator(bool deserializing) : base(deserializing) { }
     41    protected KnapsackOneBitflipMoveEvaluator(StorableConstructorFlag _) : base(_) { }
    4242    protected KnapsackOneBitflipMoveEvaluator(KnapsackOneBitflipMoveEvaluator original, Cloner cloner) : base(original, cloner) { }
    4343    public KnapsackOneBitflipMoveEvaluator()
Note: See TracChangeset for help on using the changeset viewer.