Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
11/06/10 01:56:04 (13 years ago)
Author:
swagner
Message:

Merged cloning refactoring branch back into trunk (#922)

Location:
trunk/sources
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources

  • trunk/sources/HeuristicLab.Algorithms.TabuSearch/3.3/TabuNeighborhoodAnalyzer.cs

    r4068 r4722  
    2121
    2222using System.Linq;
     23using HeuristicLab.Common;
    2324using HeuristicLab.Core;
    2425using HeuristicLab.Data;
     
    2627using HeuristicLab.Optimization;
    2728using HeuristicLab.Parameters;
     29using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
    2830
    2931namespace HeuristicLab.Algorithms.TabuSearch {
     32  [StorableClass]
     33  [Item("TabuNeighborhoodAnalyzer", "Analyzes the tabu neighborhood")]
    3034  public class TabuNeighborhoodAnalyzer : SingleSuccessorOperator, IAnalyzer {
    3135    public ScopeTreeLookupParameter<BoolValue> IsTabuParameter {
     
    3943    }
    4044
     45    [StorableConstructor]
     46    protected TabuNeighborhoodAnalyzer(bool deserializing) : base(deserializing) { }
     47    protected TabuNeighborhoodAnalyzer(TabuNeighborhoodAnalyzer original, Cloner cloner)
     48      : base(original, cloner) {
     49    }
     50    public override IDeepCloneable Clone(Cloner cloner) {
     51      return new TabuNeighborhoodAnalyzer(this, cloner);
     52    }
    4153    public TabuNeighborhoodAnalyzer()
    4254      : base() {
Note: See TracChangeset for help on using the changeset viewer.