- Timestamp:
- 04/27/09 16:16:21 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Operators/3.3/VariableInjector.cs
r1530 r1673 25 25 using System.Xml; 26 26 using HeuristicLab.Core; 27 using HeuristicLab.Persistence.Default.Decomposers.Storable; 27 28 28 29 namespace HeuristicLab.Operators { … … 31 32 /// </summary> 32 33 public class VariableInjector : OperatorBase { 34 35 [Storable] 33 36 private Dictionary<IVariable, IVariableInfo> variableVariableInfoTable; 37 38 [Storable] 34 39 private Dictionary<IVariableInfo, IVariable> variableInfoVariableTable; 35 40 … … 142 147 } 143 148 #endregion 144 145 #region Persistence Methods146 /// <summary>147 /// Saves the current instance as <see cref="XmlNode"/> in the specified <paramref name="document"/>.148 /// <note type="caution"> Variable infos are not persisted!</note>149 /// </summary>150 /// <remarks>Calls <see cref="OperatorBase.GetXmlNode"/> of base class <see cref="OperatorBase"/>.</remarks>151 /// <param name="name">The (tag)name of the <see cref="XmlNode"/>.</param>152 /// <param name="document">The <see cref="XmlDocument"/> where to save the data.</param>153 /// <param name="persistedObjects">The dictionary of all already persisted objects. (Needed to avoid cycles.)</param>154 /// <returns>The saved <see cref="XmlNode"/>.</returns>155 public override XmlNode GetXmlNode(string name, XmlDocument document, IDictionary<Guid,IStorable> persistedObjects) {156 XmlNode node = base.GetXmlNode(name, document, persistedObjects);157 // variable infos should not be persisted158 XmlNode infosNode = node.SelectSingleNode("VariableInfos");159 infosNode.RemoveAll();160 return node;161 }162 #endregion163 149 } 164 150 }
Note: See TracChangeset
for help on using the changeset viewer.