- Timestamp:
- 07/27/10 19:54:20 (14 years ago)
- Location:
- trunk/sources/HeuristicLab.Problems.DataAnalysis.MultiVariate.Regression/3.3/Symbolic
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Problems.DataAnalysis.MultiVariate.Regression/3.3/Symbolic/MultiObjectiveSymbolicVectorRegressionProblem.cs
r4068 r4118 66 66 #endregion 67 67 68 [StorableConstructor] 69 protected MultiObjectiveSymbolicVectorRegressionProblem(bool deserializing) : base(deserializing) { } 68 70 public MultiObjectiveSymbolicVectorRegressionProblem() 69 71 : base() { … … 75 77 Initialize(); 76 78 } 77 78 [StorableConstructor] 79 private MultiObjectiveSymbolicVectorRegressionProblem(bool deserializing) : base() { } 80 79 81 80 [StorableHook(HookType.AfterDeserialization)] 82 81 private void AfterDeserializationHook() { -
trunk/sources/HeuristicLab.Problems.DataAnalysis.MultiVariate.Regression/3.3/Symbolic/SymbolicVectorRegressionProblem.cs
r4068 r4118 119 119 } 120 120 121 private List<IOperator> operators;122 121 public override IEnumerable<IOperator> Operators { 123 122 get { return operators; } … … 154 153 [Storable] 155 154 private SymbolicVectorRegressionGrammar grammar; 156 155 [Storable] 156 private List<IOperator> operators; 157 158 [StorableConstructor] 159 protected SymbolicVectorRegressionProblem(bool deserializing) : base(deserializing) { } 157 160 public SymbolicVectorRegressionProblem() 158 161 : base() { … … 175 178 UpdateGrammar(); 176 179 UpdateEstimationLimits(); 177 Initialize(); 178 } 179 180 [StorableConstructor] 181 private SymbolicVectorRegressionProblem(bool deserializing) : base() { } 180 InitializeOperators(); 181 RegisterParameterEvents(); 182 RegisterParameterValueEvents(); 183 } 182 184 183 185 [StorableHook(HookType.AfterDeserialization)] 184 186 private void AfterDeserializationHook() { 185 Initialize(); 187 // BackwardsCompatibility3.3 188 #region Backwards compatible code (remove with 3.4) 189 if (operators == null) InitializeOperators(); 190 #endregion 191 RegisterParameterEvents(); 192 RegisterParameterValueEvents(); 186 193 } 187 194 188 195 public override IDeepCloneable Clone(Cloner cloner) { 189 196 SymbolicVectorRegressionProblem clone = (SymbolicVectorRegressionProblem)base.Clone(cloner); 190 clone.Initialize(); 197 clone.operators = operators.Select(x => (IOperator)cloner.Clone(x)).ToList(); 198 clone.RegisterParameterEvents(); 199 clone.RegisterParameterValueEvents(); 191 200 return clone; 192 201 } … … 254 263 protected void AddOperator(IOperator op) { 255 264 operators.Add(op); 256 }257 258 private void Initialize() {259 InitializeOperators();260 RegisterParameterEvents();261 RegisterParameterValueEvents();262 265 } 263 266
Note: See TracChangeset
for help on using the changeset viewer.