Changeset 8175 for trunk/sources/HeuristicLab.Problems.DataAnalysis.Symbolic.Classification/3.4/SingleObjective
- Timestamp:
- 07/02/12 10:13:16 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Problems.DataAnalysis.Symbolic.Classification/3.4/SingleObjective/SymbolicClassificationSingleObjectiveProblem.cs
r8139 r8175 48 48 [StorableConstructor] 49 49 protected SymbolicClassificationSingleObjectiveProblem(bool deserializing) : base(deserializing) { } 50 protected SymbolicClassificationSingleObjectiveProblem(SymbolicClassificationSingleObjectiveProblem original, Cloner cloner) : base(original, cloner) { } 50 protected SymbolicClassificationSingleObjectiveProblem(SymbolicClassificationSingleObjectiveProblem original, Cloner cloner) 51 : base(original, cloner) { 52 RegisterEventHandlers(); 53 } 51 54 public override IDeepCloneable Clone(Cloner cloner) { return new SymbolicClassificationSingleObjectiveProblem(this, cloner); } 52 55 … … 60 63 MaximumSymbolicExpressionTreeLength.Value = InitialMaximumTreeLength; 61 64 62 SymbolicExpressionTreeGrammarParameter.ValueChanged += (o, e) => ConfigureGrammarSymbols(); 63 65 RegisterEventHandlers(); 64 66 ConfigureGrammarSymbols(); 65 67 InitializeOperators(); … … 69 71 [StorableHook(HookType.AfterDeserialization)] 70 72 private void AfterDeserialization() { 73 RegisterEventHandlers(); 71 74 // compatibility 72 75 bool changed = false; … … 80 83 } 81 84 if (changed) ParameterizeOperators(); 85 } 86 87 private void RegisterEventHandlers() { 88 SymbolicExpressionTreeGrammarParameter.ValueChanged += (o, e) => ConfigureGrammarSymbols(); 82 89 } 83 90
Note: See TracChangeset
for help on using the changeset viewer.