Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
04/15/08 14:17:26 (16 years ago)
Author:
gkronber
Message:

bug fixes to make loading of OSGA-TSP work. Some non-working code remains

Location:
branches/XmlTextReaderBranch/HeuristicLab.Constraints
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • branches/XmlTextReaderBranch/HeuristicLab.Constraints/DoubleBoundedConstraint.cs

    r121 r122  
    182182    //}
    183183    public override void Populate(XmlReader reader, IDictionary<Guid, IStorable> restoredObjects) {
    184       base.Populate(reader, restoredObjects);
    185184      lowerBound = double.Parse(reader["LowerBound"]);
    186185      if(reader["LowerBoundIncluded"] != null) {
     
    206205        upperBoundEnabled = true;
    207206      }
     207      base.Populate(reader, restoredObjects);
    208208    }
    209209    #endregion
  • branches/XmlTextReaderBranch/HeuristicLab.Constraints/IntBoundedConstraint.cs

    r121 r122  
    177177    //}
    178178    public override void Populate(XmlReader reader, IDictionary<Guid, IStorable> restoredObjects) {
    179       base.Populate(reader, restoredObjects);
    180179      lowerBound = int.Parse(reader["LowerBound"]);
    181180      if(reader["LowerBoundIncluded"] != null) {
     
    201200        upperBoundEnabled = true;
    202201      }
     202      base.Populate(reader, restoredObjects);
    203203    }
    204204
  • branches/XmlTextReaderBranch/HeuristicLab.Constraints/ItemTypeConstraint.cs

    r121 r122  
    9292    //}
    9393    public override void Populate(XmlReader reader, IDictionary<Guid, IStorable> restoredObjects) {
     94      type = Type.GetType(reader["ItemType"]);
    9495      base.Populate(reader, restoredObjects);
    95       type = Type.GetType(reader["ItemType"]);
    9696    }
    9797    #endregion
  • branches/XmlTextReaderBranch/HeuristicLab.Constraints/NumberOfSubOperatorsConstraint.cs

    r121 r122  
    9494    //}
    9595    public override void Populate(XmlReader reader, IDictionary<Guid, IStorable> restoredObjects) {
    96       base.Populate(reader, restoredObjects);
    9796      minOperators = (IntData)PersistenceManager.Restore(reader, "min", restoredObjects);
    9897      maxOperators = (IntData)PersistenceManager.Restore(reader, "max", restoredObjects);
     98      base.Populate(reader, restoredObjects);
    9999    }
    100100    #endregion persistence
  • branches/XmlTextReaderBranch/HeuristicLab.Constraints/SubOperatorsTypeConstraint.cs

    r121 r122  
    133133      subOperatorIndex = (IntData)PersistenceManager.Restore(reader, "SubOperatorIndex", restoredObjects);
    134134      subOperators = new List<IOperator>();
    135       reader.ReadStartElement("AllowedSubOperators");
     135      reader.ReadToDescendant("AllowedSubOperators");
    136136      while(reader.IsStartElement())
    137137        subOperators.Add((IOperator)PersistenceManager.Restore(reader, restoredObjects));
Note: See TracChangeset for help on using the changeset viewer.