Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
07/30/09 19:41:58 (16 years ago)
Author:
gkronber
Message:

GP Refactoring #713

  • cleaned code
  • reintegrated GP.Boolean and GP.SantaFe
  • worked on serialization of function trees
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/GP-Refactoring-713/sources/HeuristicLab.GP/3.3/GeneticProgrammingModel.cs

    r2210 r2216  
    2525using HeuristicLab.Core;
    2626using HeuristicLab.GP.Interfaces;
     27using System.Xml;
    2728
    2829namespace HeuristicLab.GP {
     
    5657    }
    5758
    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;
    6063    }
    6164
    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);
    6468    }
    6569
Note: See TracChangeset for help on using the changeset viewer.