Changeset 3589 for branches/3.2/sources/HeuristicLab.GP/3.3/BaseClasses
- Timestamp:
- 05/03/10 12:43:41 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.2/sources/HeuristicLab.GP/3.3/BaseClasses/Function.cs
r2729 r3589 251 251 XmlAttribute maxSubTreesAttr = document.CreateAttribute("MaxSubTrees"); 252 252 maxSubTreesAttr.Value = XmlConvert.ToString(MaxSubTrees); 253 XmlAttribute ticketsAttr = document.CreateAttribute("Tickets"); 254 ticketsAttr.Value = XmlConvert.ToString(Tickets); 253 255 node.Attributes.Append(minSubTreesAttr); 254 256 node.Attributes.Append(maxSubTreesAttr); 257 node.Attributes.Append(ticketsAttr); 255 258 if (initializer != null) 256 259 node.AppendChild(PersistenceManager.Persist("Initializer", initializer, document, persistedObjects)); … … 274 277 MinSubTrees = XmlConvert.ToInt32(node.Attributes["MinSubTrees"].Value); 275 278 MaxSubTrees = XmlConvert.ToInt32(node.Attributes["MaxSubTrees"].Value); 279 if (node.Attributes["Tickets"] != null) { 280 tickets = XmlConvert.ToInt32(node.Attributes["Tickets"].Value); 281 } else { 282 tickets = 1; 283 } 276 284 if (node.SelectSingleNode("Initializer") != null) { 277 285 initializer = (IOperator)PersistenceManager.Restore(node.SelectSingleNode("Initializer"), restoredObjects);
Note: See TracChangeset
for help on using the changeset viewer.