Changeset 3340 for trunk/sources/HeuristicLab.Encodings.PermutationEncoding/3.3/Moves/ThreeOpt/TranslocationMoveRelativeAttribute.cs
- Timestamp:
- 04/14/10 03:52:07 (15 years ago)
- File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Encodings.PermutationEncoding/3.3/Moves/ThreeOpt/TranslocationMoveRelativeAttribute.cs
r3307 r3340 24 24 25 25 namespace HeuristicLab.Encodings.PermutationEncoding { 26 [Item("TranslocationMove Attribute", "Specifies the tabu attributes for a translocation and insertion move (3-opt).")]26 [Item("TranslocationMoveRelativeAttribute", "Specifies the tabu attributes for a translocation and insertion move (3-opt) on relative permutation encodings.")] 27 27 [StorableClass] 28 public class TranslocationMove Attribute : Item{28 public class TranslocationMoveRelativeAttribute : PermutationMoveAttribute { 29 29 [Storable] 30 30 public int Edge1Source { get; private set; } … … 41 41 42 42 [StorableConstructor] 43 private TranslocationMove Attribute(bool deserializing)43 private TranslocationMoveRelativeAttribute(bool deserializing) 44 44 : base() { 45 45 } 46 46 47 public TranslocationMove Attribute()48 : this(-1, -1, -1, -1, -1, -1 ) { }47 public TranslocationMoveRelativeAttribute() 48 : this(-1, -1, -1, -1, -1, -1, -1) { } 49 49 50 public TranslocationMove Attribute(int edge1Source, int edge1Target, int edge2Source, int edge2Target, int edge3Source, int edge3Target)51 : base( ) {50 public TranslocationMoveRelativeAttribute(int edge1Source, int edge1Target, int edge2Source, int edge2Target, int edge3Source, int edge3Target, double moveQuality) 51 : base(moveQuality) { 52 52 Edge1Source = edge1Source; 53 53 Edge1Target = edge1Target; … … 59 59 60 60 public override IDeepCloneable Clone(Cloner cloner) { 61 TranslocationMove Attribute clone = (TranslocationMoveAttribute)base.Clone(cloner);61 TranslocationMoveRelativeAttribute clone = (TranslocationMoveRelativeAttribute)base.Clone(cloner); 62 62 clone.Edge1Source = Edge1Source; 63 63 clone.Edge1Target = Edge1Target;
Note: See TracChangeset
for help on using the changeset viewer.