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/SingleItemRotationMoveAttribute.cs

    r9440 r9495  
    2929  public class SingleItemRotationMoveAttribute : MultiComponentVectorMoveAttribute {
    3030    [Storable]
     31    public int AffectedGroup { get; protected set; }
     32    [Storable]
     33    public int Index { get; protected set; }
     34    [Storable]
    3135    public int ItemIndex { get; protected set; }
    3236    [Storable]
     
    3741    protected SingleItemRotationMoveAttribute(SingleItemRotationMoveAttribute original, Cloner cloner)
    3842      : base(original, cloner) {
     43      this.AffectedGroup = original.AffectedGroup;
     44      this.Index = original.Index;
    3945      this.ItemIndex = original.ItemIndex;
    4046      this.ItemRotation = original.ItemRotation;
    4147    }
    42     public SingleItemRotationMoveAttribute() : this(-1, false, -1) { }
    43     public SingleItemRotationMoveAttribute(int itemIndex, bool itemRotation, double moveQuality)
     48    public SingleItemRotationMoveAttribute() : this(-1, -1, -1, false, -1) { }
     49    public SingleItemRotationMoveAttribute(int affectedGroup, int index, int itemIndex, bool itemRotation, double moveQuality)
    4450      : base(moveQuality) {
     51        AffectedGroup = affectedGroup;
     52        Index = index;
    4553      ItemIndex = itemIndex;
    4654      ItemRotation = itemRotation;
Note: See TracChangeset for help on using the changeset viewer.