Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
12/14/15 19:52:46 (8 years ago)
Author:
gkronber
Message:

#1966:

  • used Items instead of NamedItems and adapted views (Names/Descriptions) were not set anyway
  • fixed problems identified by Essential unit tests
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/HeuristicLab.BinPacking/HeuristicLab.Problems.BinPacking/3.3/PackingItem/RectangularPackingItem.cs

    r13032 r13461  
    3131  [Item("RectangularPackingItem", "Represents a rectangular packing-item for bin-packing problems.")]
    3232  [StorableClass]
    33   public class RectangularPackingItem : RectangularPackingShape, IPackingItem{
     33  public class RectangularPackingItem : RectangularPackingShape, IPackingItem {
    3434
    3535    public RectangularPackingBin TargetBin { get; set; }
     
    5050      return new RectangularPackingItem(this, cloner);
    5151    }
    52     public RectangularPackingItem() : base() {
     52    public RectangularPackingItem()
     53      : base() {
    5354    }
    5455
    5556    public RectangularPackingItem(int width, int height, RectangularPackingBin targetBin) : base(width, height) { this.TargetBin = new RectangularPackingBin(targetBin.Width, targetBin.Height); }
    56                                  
     57
    5758    public void AddTargetBinMeasures(int[] targetBinMeasures) {
    5859      TargetBin = new RectangularPackingBin(targetBinMeasures[0], targetBinMeasures[1]);
Note: See TracChangeset for help on using the changeset viewer.