Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
06/15/09 02:18:42 (15 years ago)
Author:
swagner
Message:

Refactoring of the operator architecture (#95)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/Operator Architecture Refactoring/HeuristicLab.Core/3.3/Variable.cs

    r2033 r2042  
    102102    /// <param name="clonedObjects">Dictionary of all already cloned objects. (Needed to avoid cycles.)</param>
    103103    /// <returns>The cloned object as <see cref="Variable"/>.</returns>
    104     public override object Clone(IDictionary<long, object> clonedObjects) {
     104    public override ICloneable Clone(ICloner cloner) {
    105105      Variable clone = new Variable();
    106       clonedObjects.Add(clone.Id, clone);
     106      cloner.AddClonedObject(this, clone);
    107107      clone.myName = Name;
    108108      if (Value != null)
    109         clone.myValue = (IItem)Auxiliary.Clone(Value, clonedObjects);
     109        clone.myValue = (IItem)cloner.Clone(Value);
    110110      return clone;
    111111    }
Note: See TracChangeset for help on using the changeset viewer.