Changeset 2377 for trunk/sources/HeuristicLab.LinearRegression
- Timestamp:
- 09/22/09 11:45:04 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.LinearRegression/3.2/LinearRegression.cs
r2375 r2377 42 42 public virtual string Description { get { return "TODO"; } } 43 43 44 private SequentialEngine.SequentialEngine engine;44 private IEngine engine; 45 45 public virtual IEngine Engine { 46 46 get { return engine; } … … 135 135 136 136 HL3TreeEvaluatorInjector treeEvaluatorInjector = new HL3TreeEvaluatorInjector(); 137 138 137 139 138 LinearRegressionOperator lrOperator = new LinearRegressionOperator(); … … 250 249 251 250 public virtual IEditor CreateEditor() { 252 return engine.CreateEditor(); 253 } 254 251 return ((SequentialEngine.SequentialEngine)engine).CreateEditor(); 252 } 253 254 #endregion 255 256 #region persistence 257 public override object Clone(IDictionary<Guid, object> clonedObjects) { 258 LinearRegression clone = (LinearRegression) base.Clone(clonedObjects); 259 clone.engine = (IEngine)Auxiliary.Clone(Engine, clonedObjects); 260 return clone; 261 } 262 263 public override XmlNode GetXmlNode(string name, XmlDocument document, IDictionary<Guid, IStorable> persistedObjects) { 264 XmlNode node = base.GetXmlNode(name, document, persistedObjects); 265 node.AppendChild(PersistenceManager.Persist("Engine", engine, document, persistedObjects)); 266 return node; 267 } 268 269 public override void Populate(XmlNode node, IDictionary<Guid, IStorable> restoredObjects) { 270 base.Populate(node, restoredObjects); 271 engine = (IEngine)PersistenceManager.Restore(node.SelectSingleNode("Engine"), restoredObjects); 272 } 255 273 #endregion 256 274 }
Note: See TracChangeset
for help on using the changeset viewer.