Changeset 122 for branches/XmlTextReaderBranch/HeuristicLab.Constraints
- Timestamp:
- 04/15/08 14:17:26 (16 years ago)
- Location:
- branches/XmlTextReaderBranch/HeuristicLab.Constraints
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/XmlTextReaderBranch/HeuristicLab.Constraints/DoubleBoundedConstraint.cs
r121 r122 182 182 //} 183 183 public override void Populate(XmlReader reader, IDictionary<Guid, IStorable> restoredObjects) { 184 base.Populate(reader, restoredObjects);185 184 lowerBound = double.Parse(reader["LowerBound"]); 186 185 if(reader["LowerBoundIncluded"] != null) { … … 206 205 upperBoundEnabled = true; 207 206 } 207 base.Populate(reader, restoredObjects); 208 208 } 209 209 #endregion -
branches/XmlTextReaderBranch/HeuristicLab.Constraints/IntBoundedConstraint.cs
r121 r122 177 177 //} 178 178 public override void Populate(XmlReader reader, IDictionary<Guid, IStorable> restoredObjects) { 179 base.Populate(reader, restoredObjects);180 179 lowerBound = int.Parse(reader["LowerBound"]); 181 180 if(reader["LowerBoundIncluded"] != null) { … … 201 200 upperBoundEnabled = true; 202 201 } 202 base.Populate(reader, restoredObjects); 203 203 } 204 204 -
branches/XmlTextReaderBranch/HeuristicLab.Constraints/ItemTypeConstraint.cs
r121 r122 92 92 //} 93 93 public override void Populate(XmlReader reader, IDictionary<Guid, IStorable> restoredObjects) { 94 type = Type.GetType(reader["ItemType"]); 94 95 base.Populate(reader, restoredObjects); 95 type = Type.GetType(reader["ItemType"]);96 96 } 97 97 #endregion -
branches/XmlTextReaderBranch/HeuristicLab.Constraints/NumberOfSubOperatorsConstraint.cs
r121 r122 94 94 //} 95 95 public override void Populate(XmlReader reader, IDictionary<Guid, IStorable> restoredObjects) { 96 base.Populate(reader, restoredObjects);97 96 minOperators = (IntData)PersistenceManager.Restore(reader, "min", restoredObjects); 98 97 maxOperators = (IntData)PersistenceManager.Restore(reader, "max", restoredObjects); 98 base.Populate(reader, restoredObjects); 99 99 } 100 100 #endregion persistence -
branches/XmlTextReaderBranch/HeuristicLab.Constraints/SubOperatorsTypeConstraint.cs
r121 r122 133 133 subOperatorIndex = (IntData)PersistenceManager.Restore(reader, "SubOperatorIndex", restoredObjects); 134 134 subOperators = new List<IOperator>(); 135 reader.Read StartElement("AllowedSubOperators");135 reader.ReadToDescendant("AllowedSubOperators"); 136 136 while(reader.IsStartElement()) 137 137 subOperators.Add((IOperator)PersistenceManager.Restore(reader, restoredObjects));
Note: See TracChangeset
for help on using the changeset viewer.