Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
07/12/16 18:23:13 (8 years ago)
Author:
gkronber
Message:

#1966: removed types for *PackingBin because PackingBins and PackingShapes have the same capabilities

Location:
branches/HeuristicLab.BinPacking/HeuristicLab.Problems.BinPacking.2D/3.3/Decoders
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • branches/HeuristicLab.BinPacking/HeuristicLab.Problems.BinPacking.2D/3.3/Decoders/BL/BottomLeftGroupingVectorDecoder.cs

    r13607 r14045  
    2424using HeuristicLab.Core;
    2525using HeuristicLab.Problems.BinPacking.Dimensions;
    26 using HeuristicLab.Problems.BinPacking.PackingBin;
     26
    2727using HeuristicLab.Problems.BinPacking.PackingItem;
    2828using HeuristicLab.Encodings.PackingEncoding.PackingPlan;
     
    3131using HeuristicLab.Encodings.PackingEncoding.GroupingVector;
    3232using HeuristicLab.Problems.BinPacking2D;
     33using HeuristicLab.Problems.BinPacking.Shapes;
    3334
    3435namespace HeuristicLab.Problems.BinPacking.Decoders {
    3536  [Item("Identical bin two dimensional grouping vector decoder", "<Description missing...>")]
    3637  [StorableClass]
    37   public class BottomLeftGroupingVectorDecoder : PackingSolutionDecoder<TwoDimensionalPacking, RectangularPackingBin,RectangularPackingItem>, I2DGVDecoder {
     38  public class BottomLeftGroupingVectorDecoder : PackingSolutionDecoder<TwoDimensionalPacking, RectangularPackingShape, RectangularPackingItem>, I2DGVDecoder {
    3839    public BottomLeftGroupingVectorDecoder() : base() {}
    3940    [StorableConstructor]
     
    4647    }
    4748
    48     public override PackingPlan<TwoDimensionalPacking, RectangularPackingBin, RectangularPackingItem> CreatePackingPlanFromEncoding(IItem encodedSolution, RectangularPackingBin binMeasures, ItemList<RectangularPackingItem> itemMeasures) {
     49    public override PackingPlan<TwoDimensionalPacking, RectangularPackingShape, RectangularPackingItem> CreatePackingPlanFromEncoding(IItem encodedSolution, RectangularPackingShape binMeasures, ItemList<RectangularPackingItem> itemMeasures) {
    4950      var solution = encodedSolution as GroupingVectorEncoding;
    5051      if (solution == null) throw new InvalidOperationException("Encoding is not of type GroupingVector");
  • branches/HeuristicLab.BinPacking/HeuristicLab.Problems.BinPacking.2D/3.3/Decoders/BL/BottomLeftMultiComponentVectorDecoder.cs

    r13606 r14045  
    2424using HeuristicLab.Core;
    2525using HeuristicLab.Problems.BinPacking.Dimensions;
    26 using HeuristicLab.Problems.BinPacking.PackingBin;
    2726using HeuristicLab.Problems.BinPacking.PackingItem;
    2827using HeuristicLab.Encodings.PackingEncoding.PackingPlan;
     
    3130using HeuristicLab.Encodings.PackingEncoding.MultiComponentVector;
    3231using HeuristicLab.Problems.BinPacking2D;
     32using HeuristicLab.Problems.BinPacking.Shapes;
    3333
    3434namespace HeuristicLab.Problems.BinPacking.Decoders {
    3535  [Item("Identical bin two dimensional multi component vector decoder", "<Description missing...>")]
    3636  [StorableClass]
    37   public class BottomLeftMultiComponentVectorDecoder : PackingSolutionDecoder<TwoDimensionalPacking,RectangularPackingBin, RectangularPackingItem>, I2DMCVDecoder {
     37  public class BottomLeftMultiComponentVectorDecoder : PackingSolutionDecoder<TwoDimensionalPacking,RectangularPackingShape, RectangularPackingItem>, I2DMCVDecoder {
    3838    public BottomLeftMultiComponentVectorDecoder() : base() {}
    3939    [StorableConstructor]
     
    4646    }
    4747
    48     public override PackingPlan<TwoDimensionalPacking, RectangularPackingBin, RectangularPackingItem> CreatePackingPlanFromEncoding(IItem encodedSolution, RectangularPackingBin binMeasures, ItemList<RectangularPackingItem> itemMeasures) {
     48    public override PackingPlan<TwoDimensionalPacking, RectangularPackingShape, RectangularPackingItem> CreatePackingPlanFromEncoding(IItem encodedSolution, RectangularPackingShape binMeasures, ItemList<RectangularPackingItem> itemMeasures) {
    4949      var solution = encodedSolution as MultiComponentVectorEncoding;
    5050      if (solution == null) throw new InvalidOperationException("Encoding is not of type MultiComponent Vector");
  • branches/HeuristicLab.BinPacking/HeuristicLab.Problems.BinPacking.2D/3.3/Decoders/BL/BottomLeftPackingSequenceDecoder.cs

    r13607 r14045  
    2525using HeuristicLab.Core;
    2626using HeuristicLab.Problems.BinPacking.Dimensions;
    27 using HeuristicLab.Problems.BinPacking.PackingBin;
     27
    2828using HeuristicLab.Problems.BinPacking.PackingItem;
    2929using HeuristicLab.Encodings.PackingEncoding.PackingPlan;
     
    3232using HeuristicLab.Problems.BinPacking.Interfaces;
    3333using HeuristicLab.Problems.BinPacking2D;
     34using HeuristicLab.Problems.BinPacking.Shapes;
    3435
    3536namespace HeuristicLab.Problems.BinPacking.Decoders {
    3637  [Item("Identical bin, two dimensional, direct permutation decoder", "<Description missing...>")]
    3738  [StorableClass]
    38   public class BottomLeftPackingSequenceDecoder : PackingSolutionDecoder<TwoDimensionalPacking, RectangularPackingBin, RectangularPackingItem>, I2DPSDecoder {
     39  public class BottomLeftPackingSequenceDecoder : PackingSolutionDecoder<TwoDimensionalPacking, RectangularPackingShape, RectangularPackingItem>, I2DPSDecoder {
    3940
    4041    public BottomLeftPackingSequenceDecoder(): base() { }
     
    4849    }
    4950
    50     public override PackingPlan<TwoDimensionalPacking, RectangularPackingBin, RectangularPackingItem> CreatePackingPlanFromEncoding(IItem encodedSolution, RectangularPackingBin binMeasures, ItemList<RectangularPackingItem> itemMeasures) {
     51    public override PackingPlan<TwoDimensionalPacking, RectangularPackingShape, RectangularPackingItem> CreatePackingPlanFromEncoding(IItem encodedSolution, RectangularPackingShape binMeasures, ItemList<RectangularPackingItem> itemMeasures) {
    5152      var solution = encodedSolution as PackingSequenceEncoding;
    5253      if (solution == null) throw new InvalidOperationException("Encoding is not of type PackingSequence");
  • branches/HeuristicLab.BinPacking/HeuristicLab.Problems.BinPacking.2D/3.3/Decoders/EP/ExtremePointGroupingVectorDecoder2D.cs

    r13607 r14045  
    2525using HeuristicLab.Core;
    2626using HeuristicLab.Problems.BinPacking.Dimensions;
    27 using HeuristicLab.Problems.BinPacking.PackingBin;
     27
    2828using HeuristicLab.Problems.BinPacking.PackingItem;
    2929using HeuristicLab.Encodings.PackingEncoding.PackingPlan;
     
    3232using HeuristicLab.Encodings.PackingEncoding.GroupingVector;
    3333using HeuristicLab.Problems.BinPacking2D;
     34using HeuristicLab.Problems.BinPacking.Shapes;
    3435
    3536namespace HeuristicLab.Problems.BinPacking.Decoders {
    3637  [Item("Identical bin, two dimensional, extreme points based decoder for the GroupingVector encoding.", "<Description missing...>")]
    3738  [StorableClass]
    38   public class ExtremePointGroupingVectorDecoder2D : PackingSolutionDecoder<TwoDimensionalPacking, RectangularPackingBin, RectangularPackingItem>, I2DGVDecoder {
     39  public class ExtremePointGroupingVectorDecoder2D : PackingSolutionDecoder<TwoDimensionalPacking, RectangularPackingShape, RectangularPackingItem>, I2DGVDecoder {
    3940    public ExtremePointGroupingVectorDecoder2D () : base() {}
    4041    [StorableConstructor]
     
    4748    }
    4849
    49     public static PackingPlan<TwoDimensionalPacking, RectangularPackingBin, RectangularPackingItem> Decode(GroupingVectorEncoding solution, RectangularPackingBin binMeasures, ItemList<RectangularPackingItem> itemMeasures) {
     50    public static PackingPlan<TwoDimensionalPacking, RectangularPackingShape, RectangularPackingItem> Decode(GroupingVectorEncoding solution, RectangularPackingShape binMeasures, ItemList<RectangularPackingItem> itemMeasures) {
    5051      PackingPlan2D result = new PackingPlan2D(binMeasures, true, false);
    5152      result.Pack(solution, itemMeasures);
     
    5354    }
    5455
    55     public override PackingPlan<TwoDimensionalPacking, RectangularPackingBin, RectangularPackingItem> CreatePackingPlanFromEncoding(IItem encodedSolution, RectangularPackingBin binMeasures, ItemList<RectangularPackingItem> itemMeasures) {
     56    public override PackingPlan<TwoDimensionalPacking, RectangularPackingShape, RectangularPackingItem> CreatePackingPlanFromEncoding(IItem encodedSolution, RectangularPackingShape binMeasures, ItemList<RectangularPackingItem> itemMeasures) {
    5657      var solution = encodedSolution as GroupingVectorEncoding;
    5758      if (solution == null) throw new InvalidOperationException("Encoding is not of type GroupingVector");
  • branches/HeuristicLab.BinPacking/HeuristicLab.Problems.BinPacking.2D/3.3/Decoders/EP/ExtremePointMultiComponentVectorDecoder2D.cs

    r13607 r14045  
    2424using HeuristicLab.Core;
    2525using HeuristicLab.Problems.BinPacking.Dimensions;
    26 using HeuristicLab.Problems.BinPacking.PackingBin;
     26
    2727using HeuristicLab.Problems.BinPacking.PackingItem;
    2828using HeuristicLab.Encodings.PackingEncoding.PackingPlan;
     
    3131using HeuristicLab.Encodings.PackingEncoding.MultiComponentVector;
    3232using HeuristicLab.Problems.BinPacking2D;
     33using HeuristicLab.Problems.BinPacking.Shapes;
    3334
    3435namespace HeuristicLab.Problems.BinPacking.Decoders {
    3536  [Item("Identical bin, two dimensional, extreme points based decoder for the MultiComponentVector encoding.", "<Description missing...>")] // TODO
    3637  [StorableClass]
    37   public class ExtremePointMultiComponentVectorDecoder2D : PackingSolutionDecoder<TwoDimensionalPacking,RectangularPackingBin, RectangularPackingItem>, I2DMCVDecoder {
     38  public class ExtremePointMultiComponentVectorDecoder2D : PackingSolutionDecoder<TwoDimensionalPacking, RectangularPackingShape, RectangularPackingItem>, I2DMCVDecoder {
    3839    public ExtremePointMultiComponentVectorDecoder2D () : base() {}
    3940    [StorableConstructor]
     
    4647    }
    4748
    48     public static PackingPlan<TwoDimensionalPacking, RectangularPackingBin, RectangularPackingItem> Decode(MultiComponentVectorEncoding solution, RectangularPackingBin binMeasures, ItemList<RectangularPackingItem> itemMeasures) {
     49    public static PackingPlan<TwoDimensionalPacking, RectangularPackingShape, RectangularPackingItem> Decode(MultiComponentVectorEncoding solution, RectangularPackingShape binMeasures, ItemList<RectangularPackingItem> itemMeasures) {
    4950      PackingPlan2D result = new PackingPlan2D(binMeasures, true, false);
    5051      result.Pack(solution, itemMeasures);
     
    5253    }
    5354
    54     public override PackingPlan<TwoDimensionalPacking, RectangularPackingBin, RectangularPackingItem> CreatePackingPlanFromEncoding(IItem encodedSolution, RectangularPackingBin binMeasures, ItemList<RectangularPackingItem> itemMeasures) {
     55    public override PackingPlan<TwoDimensionalPacking, RectangularPackingShape, RectangularPackingItem> CreatePackingPlanFromEncoding(IItem encodedSolution, RectangularPackingShape binMeasures, ItemList<RectangularPackingItem> itemMeasures) {
    5556      var solution = encodedSolution as MultiComponentVectorEncoding;
    5657      if (solution == null) throw new InvalidOperationException("Encoding is not of type MultiComponentVector");
  • branches/HeuristicLab.BinPacking/HeuristicLab.Problems.BinPacking.2D/3.3/Decoders/EP/ExtremePointPackingSequenceDecoder2D.cs

    r13607 r14045  
    2525using HeuristicLab.Core;
    2626using HeuristicLab.Problems.BinPacking.Dimensions;
    27 using HeuristicLab.Problems.BinPacking.PackingBin;
    2827using HeuristicLab.Problems.BinPacking.PackingItem;
    2928using HeuristicLab.Encodings.PackingEncoding.PackingPlan;
     
    3231using HeuristicLab.Problems.BinPacking.Interfaces;
    3332using HeuristicLab.Problems.BinPacking2D;
     33using HeuristicLab.Problems.BinPacking.Shapes;
    3434
    3535namespace HeuristicLab.Problems.BinPacking.Decoders {
    3636  [Item("Identical bin, two dimensional, extreme points based decoder for the PackingSequence encoding.", "<Description missing...>")] // TODO
    3737  [StorableClass]
    38   public class ExtremePointPackingSequenceDecoder2D : PackingSolutionDecoder<TwoDimensionalPacking, RectangularPackingBin, RectangularPackingItem>, I2DPSDecoder {
     38  public class ExtremePointPackingSequenceDecoder2D : PackingSolutionDecoder<TwoDimensionalPacking, RectangularPackingShape, RectangularPackingItem>, I2DPSDecoder {
    3939    public ExtremePointPackingSequenceDecoder2D () : base() {}
    4040    [StorableConstructor]
     
    4848
    4949
    50     public override PackingPlan<TwoDimensionalPacking, RectangularPackingBin, RectangularPackingItem> CreatePackingPlanFromEncoding(IItem encodedSolution, RectangularPackingBin binMeasures, ItemList<RectangularPackingItem> itemMeasures) {
     50    public override PackingPlan<TwoDimensionalPacking, RectangularPackingShape, RectangularPackingItem> CreatePackingPlanFromEncoding(IItem encodedSolution, RectangularPackingShape binMeasures, ItemList<RectangularPackingItem> itemMeasures) {
    5151      var solution = encodedSolution as PackingSequenceEncoding;
    5252      if (solution == null) throw new InvalidOperationException("Encoding is not of type PackingSequence");
Note: See TracChangeset for help on using the changeset viewer.