Free cookie consent management tool by TermsFeed Policy Generator

Changeset 7486


Ignore:
Timestamp:
02/20/12 10:27:40 (12 years ago)
Author:
mkommend
Message:

#1682: Added forgotten AfterDeserializationHook in the SymbolicDataAnalysisExpressionTreeInterpreter to add the EvaluatedSolutionsParameter if it is not present.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/HeuristicLab.Crossovers/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/SymbolicDataAnalysisExpressionTreeInterpreter.cs

    r7477 r7486  
    208208    }
    209209
    210     #region state
     210    [StorableHook(HookType.AfterDeserialization)]
     211    private void AfterDeserialization() {
     212      if (!Parameters.ContainsKey(EvaluatedSolutionsParameterName))
     213        Parameters.Add(new ValueParameter<IntValue>(EvaluatedSolutionsParameterName, "A counter for the total number of solutions the interpreter has evaluated", new IntValue(0)));
     214    }
     215
     216    #region IStatefulItem
    211217    public void InitializeState() {
    212218      EvaluatedSolutions.Value = 0;
Note: See TracChangeset for help on using the changeset viewer.