Changeset 2216 for branches/GP-Refactoring-713/sources/HeuristicLab.GP/3.3/GeneticProgrammingModel.cs
- Timestamp:
- 07/30/09 19:41:58 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/GP-Refactoring-713/sources/HeuristicLab.GP/3.3/GeneticProgrammingModel.cs
r2210 r2216 25 25 using HeuristicLab.Core; 26 26 using HeuristicLab.GP.Interfaces; 27 using System.Xml; 27 28 28 29 namespace HeuristicLab.GP { … … 56 57 } 57 58 58 public override System.Xml.XmlNode GetXmlNode(string name, System.Xml.XmlDocument document, IDictionary<Guid, IStorable> persistedObjects) { 59 throw new NotImplementedException(); 59 public override XmlNode GetXmlNode(string name, XmlDocument document, IDictionary<Guid, IStorable> persistedObjects) { 60 XmlNode node = base.GetXmlNode(name, document, persistedObjects); 61 node.Value = GeneralTreeSerializer.Export(FunctionTree); 62 return node; 60 63 } 61 64 62 public override void Populate(System.Xml.XmlNode node, IDictionary<Guid, IStorable> restoredObjects) { 63 throw new NotImplementedException(); 65 public override void Populate(XmlNode node, IDictionary<Guid, IStorable> restoredObjects) { 66 base.Populate(node, restoredObjects); 67 FunctionTree = GeneralTreeSerializer.Import(node.Value); 64 68 } 65 69
Note: See TracChangeset
for help on using the changeset viewer.