Changeset 2089
- Timestamp:
- 06/24/09 17:29:45 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Hive.Engine/3.2/Job.cs
r1815 r2089 103 103 public override System.Xml.XmlNode GetXmlNode(string name, System.Xml.XmlDocument document, IDictionary<Guid, IStorable> persistedObjects) { 104 104 XmlNode node = base.GetXmlNode(name, document, persistedObjects); 105 XmlAttribute idAttr = document.CreateAttribute("JobId"); 106 idAttr.Value = XmlConvert.ToString(JobId); 107 node.Attributes.Append(idAttr); 105 108 node.AppendChild(PersistenceManager.Persist("Engine", Engine, document, persistedObjects)); 106 109 return node; … … 108 111 public override void Populate(System.Xml.XmlNode node, IDictionary<Guid, IStorable> restoredObjects) { 109 112 base.Populate(node, restoredObjects); 113 JobId = XmlConvert.ToInt64(node.Attributes["JobId"].Value); 110 114 DeregisterEvents(); 111 115 engine = (SequentialEngine.SequentialEngine)PersistenceManager.Restore(node.SelectSingleNode("Engine"), restoredObjects);
Note: See TracChangeset
for help on using the changeset viewer.