Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
07/12/16 20:03:45 (8 years ago)
Author:
gkronber
Message:

#1966: simplified class names

File:
1 moved

Legend:

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

    r14048 r14049  
    2929
    3030namespace HeuristicLab.Problems.BinPacking2D {
    31   [Item("RectangularPackingItem", "Represents a rectangular packing-item for bin-packing problems.")]
     31  [Item("PackingItem (2d)", "Represents a rectangular packing-item for bin-packing problems.")]
    3232  [StorableClass]
    33   public class RectangularPackingItem : RectangularPackingShape, IPackingItem {
     33  public class PackingItem : PackingShape, IPackingItem {
    3434
    35     public RectangularPackingShape TargetBin {
    36       get { return ((IValueParameter<RectangularPackingShape>)Parameters["TargetBin"]).Value; }
    37       set { ((IValueParameter<RectangularPackingShape>)Parameters["TargetBin"]).Value = value; }
     35    public PackingShape TargetBin {
     36      get { return ((IValueParameter<PackingShape>)Parameters["TargetBin"]).Value; }
     37      set { ((IValueParameter<PackingShape>)Parameters["TargetBin"]).Value = value; }
    3838    }
    3939
     
    4949
    5050    [StorableConstructor]
    51     protected RectangularPackingItem(bool deserializing) : base(deserializing) { }
    52     protected RectangularPackingItem(RectangularPackingItem original, Cloner cloner)
     51    protected PackingItem(bool deserializing) : base(deserializing) { }
     52    protected PackingItem(PackingItem original, Cloner cloner)
    5353      : base(original, cloner) {
    5454    }
    5555
    5656    public override IDeepCloneable Clone(Cloner cloner) {
    57       return new RectangularPackingItem(this, cloner);
     57      return new PackingItem(this, cloner);
    5858    }
    5959
    60     public RectangularPackingItem()
     60    public PackingItem()
    6161      : base() {
    62       Parameters.Add(new ValueParameter<RectangularPackingShape>("TargetBin"));
     62      Parameters.Add(new ValueParameter<PackingShape>("TargetBin"));
    6363      Parameters.Add(new FixedValueParameter<DoubleValue>("Weight"));
    6464      Parameters.Add(new FixedValueParameter<IntValue>("Material"));
    6565    }
    6666
    67     public RectangularPackingItem(int width, int height, RectangularPackingShape targetBin)
     67    public PackingItem(int width, int height, PackingShape targetBin)
    6868      : this() {
    6969      this.Width = width;
    7070      this.Height = height;
    71       this.TargetBin = (RectangularPackingShape)targetBin.Clone();
     71      this.TargetBin = (PackingShape)targetBin.Clone();
    7272    }
    7373
Note: See TracChangeset for help on using the changeset viewer.