Changeset 14466 for branches/MemPRAlgorithm/HeuristicLab.Algorithms.MemPR/3.3/LinearLinkage/LinearLinkageSolutionSubspace.cs
- Timestamp:
- 12/07/16 23:46:29 (8 years ago)
- Location:
- branches/MemPRAlgorithm/HeuristicLab.Algorithms.MemPR/3.3/LinearLinkage
- Files:
-
- 1 added
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
branches/MemPRAlgorithm/HeuristicLab.Algorithms.MemPR/3.3/LinearLinkage/LinearLinkageSolutionSubspace.cs
r14450 r14466 23 23 using HeuristicLab.Common; 24 24 using HeuristicLab.Core; 25 using HeuristicLab.Encodings.BinaryVectorEncoding;26 25 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 27 26 28 namespace HeuristicLab.Algorithms.MemPR. Binary{29 [Item("Solution subspace ( binary)", "")]27 namespace HeuristicLab.Algorithms.MemPR.LinearLinkage { 28 [Item("Solution subspace (linear linkage)", "")] 30 29 [StorableClass] 31 public sealed class BinarySolutionSubspace : Item, ISolutionSubspace<BinaryVector> {30 public sealed class LinearLinkageSolutionSubspace : Item, ISolutionSubspace<Encodings.LinearLinkageEncoding.LinearLinkage> { 32 31 33 32 [Storable] … … 36 35 37 36 [StorableConstructor] 38 private BinarySolutionSubspace(bool deserializing) : base(deserializing) { }39 private BinarySolutionSubspace(BinarySolutionSubspace original, Cloner cloner)37 private LinearLinkageSolutionSubspace(bool deserializing) : base(deserializing) { } 38 private LinearLinkageSolutionSubspace(LinearLinkageSolutionSubspace original, Cloner cloner) 40 39 : base(original, cloner) { 41 40 subspace = (bool[])original.subspace.Clone(); 42 41 } 43 public BinarySolutionSubspace(bool[] subspace) {42 public LinearLinkageSolutionSubspace(bool[] subspace) { 44 43 this.subspace = subspace; 45 44 } 46 45 47 46 public override IDeepCloneable Clone(Cloner cloner) { 48 return new BinarySolutionSubspace(this, cloner);47 return new LinearLinkageSolutionSubspace(this, cloner); 49 48 } 50 49 }
Note: See TracChangeset
for help on using the changeset viewer.