Changeset 9495 for branches/HeuristicLab.BinPacking/HeuristicLab.Problems.BinPacking/3.3/Encodings/MultiComponentVector/Moves/ThreeWay/Attributes/SwapPositionMoveAttribute.cs
- Timestamp:
- 05/15/13 22:23:36 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.BinPacking/HeuristicLab.Problems.BinPacking/3.3/Encodings/MultiComponentVector/Moves/ThreeWay/Attributes/SwapPositionMoveAttribute.cs
r9473 r9495 29 29 public class SwapPositionMoveAttribute : MultiComponentVectorMoveAttribute { 30 30 [Storable] 31 public int AffectedGroup { get; protected set; } 32 [Storable] 31 33 public int Index1 { get; protected set; } 32 34 [Storable] 33 35 public int Index2 { get; protected set; } 34 36 [Storable] 35 public int ItemI ndex1 { get; protected set; }37 public int ItemID1 { get; protected set; } 36 38 [Storable] 37 public int ItemI ndex2 { get; protected set; }39 public int ItemID2 { get; protected set; } 38 40 39 41 [StorableConstructor] … … 41 43 protected SwapPositionMoveAttribute(SwapPositionMoveAttribute original, Cloner cloner) 42 44 : base(original, cloner) { 45 this.AffectedGroup = original.AffectedGroup; 43 46 this.Index1 = original.Index1; 44 47 this.Index2 = original.Index2; 45 this.ItemI ndex1 = original.ItemIndex1;46 this.ItemI ndex2 = original.ItemIndex2;48 this.ItemID1 = original.ItemID1; 49 this.ItemID2 = original.ItemID2; 47 50 } 48 public SwapPositionMoveAttribute() : this(-1, -1, -1, -1, -1 ) { }49 public SwapPositionMoveAttribute(int index1, int index2, int itemIndex1, int itemIndex2, double moveQuality)51 public SwapPositionMoveAttribute() : this(-1, -1, -1, -1, -1, -1) { } 52 public SwapPositionMoveAttribute(int affectedGroup, int index1, int index2, int itemID1, int itemID2, double moveQuality) 50 53 : base(moveQuality) { 54 AffectedGroup = affectedGroup; 51 55 Index1 = index1; 52 56 Index2 = index2; 53 ItemI ndex1 = itemIndex1;54 ItemI ndex2 = itemIndex2;57 ItemID1 = itemID1; 58 ItemID2 = itemID2; 55 59 } 56 60
Note: See TracChangeset
for help on using the changeset viewer.