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

File:
1 edited

Legend:

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

    r14039 r14045  
    2828using HeuristicLab.Data;
    2929using HeuristicLab.Parameters;
    30 using HeuristicLab.Problems.BinPacking.PackingBin;
     30
    3131
    3232namespace HeuristicLab.Problems.BinPacking.PackingItem {
     
    3535  public class RectangularPackingItem : RectangularPackingShape, IPackingItem {
    3636
    37     public RectangularPackingBin TargetBin {
    38       get { return ((IValueParameter<RectangularPackingBin>)Parameters["TargetBin"]).Value; }
    39       set { ((IValueParameter<RectangularPackingBin>)Parameters["TargetBin"]).Value = value; }
     37    public RectangularPackingShape TargetBin {
     38      get { return ((IValueParameter<RectangularPackingShape>)Parameters["TargetBin"]).Value; }
     39      set { ((IValueParameter<RectangularPackingShape>)Parameters["TargetBin"]).Value = value; }
    4040    }
    4141
     
    6262    public RectangularPackingItem()
    6363      : base() {
    64       Parameters.Add(new ValueParameter<RectangularPackingBin>("TargetBin"));
     64      Parameters.Add(new ValueParameter<RectangularPackingShape>("TargetBin"));
    6565      Parameters.Add(new FixedValueParameter<DoubleValue>("Weight"));
    6666      Parameters.Add(new FixedValueParameter<IntValue>("Material"));
    6767    }
    6868
    69     public RectangularPackingItem(int width, int height, RectangularPackingBin targetBin)
     69    public RectangularPackingItem(int width, int height, RectangularPackingShape targetBin)
    7070      : this() {
    7171      this.Width = width;
    7272      this.Height = height;
    73       this.TargetBin = (RectangularPackingBin)targetBin.Clone();
     73      this.TargetBin = (RectangularPackingShape)targetBin.Clone();
    7474    }
    7575
Note: See TracChangeset for help on using the changeset viewer.