Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
07/27/10 19:54:20 (14 years ago)
Author:
abeham
Message:

#1090

  • Fixed problem plugins reloading their operators on deserialization in following problems (forgot on them in the first commit)
    • SupportVectorRegressionProblem
    • SymbolicTimeSeriesPrognosisProblem
  • Fixed a bug in the FeatureSelectionProblem introduced in r4098
  • Fixed the issues mentioned in the code review of mkommend
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Problems.TravelingSalesman/3.3/TravelingSalesmanProblem.cs

    r4098 r4118  
    132132
    133133    [StorableConstructor]
    134     private TravelingSalesmanProblem(bool deserializing) : base() { }
     134    private TravelingSalesmanProblem(bool deserializing) : base(deserializing) { }
    135135    public TravelingSalesmanProblem()
    136136      : base() {
     
    246246    #region Helpers
    247247    [StorableHook(HookType.AfterDeserialization)]
     248    private void AfterDeserializationHook() {
     249      // BackwardsCompatibility3.3
     250      #region Backwards compatible code (remove with 3.4)
     251      if (operators == null) InitializeOperators();
     252      #endregion
     253      AttachEventHandlers();
     254    }
     255
    248256    private void AttachEventHandlers() {
    249       // Start BackwardsCompatibility3.3 (remove with 3.4)
    250       if (operators == null) InitializeOperators();
    251       // End BackwardsCompatibility3.3
    252257      CoordinatesParameter.ValueChanged += new EventHandler(CoordinatesParameter_ValueChanged);
    253258      Coordinates.ItemChanged += new EventHandler<EventArgs<int, int>>(Coordinates_ItemChanged);
Note: See TracChangeset for help on using the changeset viewer.