Changeset 4663 for branches/CloningRefactoring/HeuristicLab.Encodings.BinaryVectorEncoding/3.3/Moves/OneBitflipMove/ExhaustiveOneBitflipMoveGenerator.cs
- Timestamp:
- 10/29/10 16:41:43 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/CloningRefactoring/HeuristicLab.Encodings.BinaryVectorEncoding/3.3/Moves/OneBitflipMove/ExhaustiveOneBitflipMoveGenerator.cs
r4068 r4663 23 23 using HeuristicLab.Optimization; 24 24 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 25 using HeuristicLab.Common; 25 26 26 27 namespace HeuristicLab.Encodings.BinaryVectorEncoding { 27 28 [Item("ExhaustiveBitflipMoveGenerator", "Generates all possible one bitflip moves from a given binaryVector.")] 28 29 [StorableClass] 29 public class ExhaustiveOneBitflipMoveGenerator : OneBitflipMoveGenerator, IExhaustiveMoveGenerator { 30 public sealed class ExhaustiveOneBitflipMoveGenerator : OneBitflipMoveGenerator, IExhaustiveMoveGenerator { 31 [StorableConstructor] 32 private ExhaustiveOneBitflipMoveGenerator(bool deserializing) : base(deserializing) { } 33 private ExhaustiveOneBitflipMoveGenerator(ExhaustiveOneBitflipMoveGenerator original, Cloner cloner) : base(original, cloner) { } 34 public ExhaustiveOneBitflipMoveGenerator() : base() { } 35 36 public override IDeepCloneable Clone(Cloner cloner) { 37 return new ExhaustiveOneBitflipMoveGenerator(this, cloner); 38 } 39 30 40 public static OneBitflipMove[] Apply(BinaryVector binaryVector) { 31 41 int length = binaryVector.Length;
Note: See TracChangeset
for help on using the changeset viewer.