Changeset 2526 for trunk/sources/HeuristicLab.Routing.TSP
- Timestamp:
- 11/23/09 16:43:34 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Routing.TSP/3.3/TSPTour.cs
r2520 r2526 74 74 /// Clones the current instance (deep clone). 75 75 /// </summary> 76 /// <remarks>Uses <see cref=" Auxiliary.Clone"/> method of class <see cref="Auxiliary"/> to clone76 /// <remarks>Uses <see cref="cloner.Clone"/> method of class <see cref="Auxiliary"/> to clone 77 77 /// the coordinates.</remarks> 78 78 /// <param name="clonedObjects">Dictionary of all already cloned objects. (Needed to avoid cycles.)</param> 79 79 /// <returns>The cloned object as <see cref="TSPTour"/>.</returns> 80 public override object Clone(IDictionary<Guid, object> clonedObjects) {81 TSPTour clone = (TSPTour)base.Clone(clone dObjects);82 clone.myCoordinates = (DoubleMatrixData) Auxiliary.Clone(Coordinates, clonedObjects);80 public override IItem Clone(ICloner cloner) { 81 TSPTour clone = (TSPTour)base.Clone(cloner); 82 clone.myCoordinates = (DoubleMatrixData)cloner.Clone(Coordinates); 83 83 clone.myTour = Tour; 84 84 return clone;
Note: See TracChangeset
for help on using the changeset viewer.