Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
05/15/13 22:23:36 (11 years ago)
Author:
jhelm
Message:

#1966: Did some major refactoring in Decoder-classes; Added MoveEvaluator classes for different encodings and dimensions; Added new crossover-class for MCV encoding;

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/HeuristicLab.BinPacking/HeuristicLab.Problems.BinPacking/3.3/Encodings/MultiComponentVector/Moves/ThreeWay/Attributes/SwapPositionMoveAttribute.cs

    r9473 r9495  
    2929  public class SwapPositionMoveAttribute : MultiComponentVectorMoveAttribute {
    3030    [Storable]
     31    public int AffectedGroup { get; protected set; }
     32    [Storable]
    3133    public int Index1 { get; protected set; }
    3234    [Storable]
    3335    public int Index2 { get; protected set; }
    3436    [Storable]
    35     public int ItemIndex1 { get; protected set; }
     37    public int ItemID1 { get; protected set; }
    3638    [Storable]
    37     public int ItemIndex2 { get; protected set; }
     39    public int ItemID2 { get; protected set; }
    3840
    3941    [StorableConstructor]
     
    4143    protected SwapPositionMoveAttribute(SwapPositionMoveAttribute original, Cloner cloner)
    4244      : base(original, cloner) {
     45        this.AffectedGroup = original.AffectedGroup;
    4346        this.Index1 = original.Index1;
    4447        this.Index2 = original.Index2;
    45       this.ItemIndex1 = original.ItemIndex1;
    46       this.ItemIndex2 = original.ItemIndex2;
     48      this.ItemID1 = original.ItemID1;
     49      this.ItemID2 = original.ItemID2;
    4750    }
    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)
    5053      : base(moveQuality) {
     54        AffectedGroup = affectedGroup;
    5155        Index1 = index1;
    5256        Index2 = index2;
    53         ItemIndex1 = itemIndex1;
    54         ItemIndex2 = itemIndex2;
     57        ItemID1 = itemID1;
     58        ItemID2 = itemID2;
    5559    }
    5660
Note: See TracChangeset for help on using the changeset viewer.