Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
04/23/15 19:09:46 (9 years ago)
Author:
mkommend
Message:

#2320: Added AfterDeserialization hook for symbolic expression tree operator and adapted lawn mower and timeseries prognis problems.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/SymbolicExpressionTreeEncoding/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.4/SymbolicExpressionTreeOperator.cs

    r12314 r12345  
    5858      Parameters.Add(new LookupParameter<ISymbolicExpressionTree>(SymbolicExpressionTreeParameterName, "The symbolic expression tree on which the operator should be applied."));
    5959    }
     60
     61    [StorableHook(HookType.AfterDeserialization)]
     62    private void AfterDeserialization() {
     63      // BackwardsCompatibility3.3
     64      #region Backwards compatible code, remove with 3.4
     65      if (!Parameters.ContainsKey(SymbolicExpressionTreeParameterName))
     66        Parameters.Add(new LookupParameter<ISymbolicExpressionTree>(SymbolicExpressionTreeParameterName, "The symbolic expression tree on which the operator should be applied."));
     67      #endregion
     68    }
    6069  }
    6170}
Note: See TracChangeset for help on using the changeset viewer.