- Timestamp:
- 06/21/20 16:51:58 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2825-NSGA3/HeuristicLab.Algorithms.NSGA3/3.3/ReferencePoint.cs
r17615 r17617 1 1 using System.Collections.Generic; 2 using HEAL.Attic;3 using HeuristicLab.Common;4 2 5 3 namespace HeuristicLab.Algorithms.NSGA3 … … 11 9 */ 12 10 13 [StorableType("96DCBD85-7C8B-4546-B6F5-FB4AE0DF7158")] 14 internal class ReferencePoint : IDeepCloneable 11 public class ReferencePoint 15 12 { 16 #region StorableProperties13 #region Properties 17 14 18 15 public double[] Values { get; } 19 20 #endregion Storable Properties21 22 #region Properties23 24 16 public int NumberOfDimensions => Values.Length; 25 17 26 18 #endregion Properties 19 20 #region Constructors 27 21 28 22 public ReferencePoint(int numberOfDimensions) … … 38 32 } 39 33 40 public IDeepCloneable Clone(Cloner cloner) 41 { 42 // no cloner is required to copy a Reference Point 43 return new ReferencePoint(this); 44 } 45 46 public object Clone() 47 { 48 return new Cloner().Clone(this); 49 } 34 #endregion Constructors 50 35 51 36 // todo: use this (for optimization)
Note: See TracChangeset
for help on using the changeset viewer.