Changeset 9495 for branches/HeuristicLab.BinPacking/HeuristicLab.Problems.BinPacking/3.3/Encodings/MultiComponentVector/Moves/ThreeWay/Attributes/ChangePositionMoveAttribute.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/ChangePositionMoveAttribute.cs
r9473 r9495 29 29 public class ChangePositionMoveAttribute : MultiComponentVectorMoveAttribute { 30 30 [Storable] 31 public int Index { get; protected set; } 31 public int AffectedGroup { get; protected set; } 32 [Storable] 33 public int Index { get; protected set; } 34 [Storable] 35 public int ItemID { get; protected set; } 32 36 [Storable] 33 37 public int TargetIndex { get; protected set; } 34 [Storable]35 public int ItemIndex { get; protected set; }36 38 37 39 [StorableConstructor] … … 41 43 this.Index = original.Index; 42 44 this.TargetIndex = original.TargetIndex; 43 this.ItemI ndex = original.ItemIndex;45 this.ItemID = original.ItemID; 44 46 } 45 public ChangePositionMoveAttribute() : this(-1, -1, -1, -1 ) { }46 public ChangePositionMoveAttribute(int index, int targetIndex, int itemIndex, double moveQuality)47 public ChangePositionMoveAttribute() : this(-1, -1, -1, -1, -1) { } 48 public ChangePositionMoveAttribute(int affectedGroup, int index, int itemID, int targetIndex, double moveQuality) 47 49 : base(moveQuality) { 50 AffectedGroup = affectedGroup; 48 51 Index = index; 49 52 TargetIndex = targetIndex; 50 ItemI ndex = itemIndex;53 ItemID = itemID; 51 54 } 52 55
Note: See TracChangeset
for help on using the changeset viewer.