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

    r14043 r14045  
    3333  [Item("RectangularPackingShape", "Represents the rectangular measures (width, height) of a two-dimensional bin-packing object.")]
    3434  [StorableClass]
    35   public abstract class RectangularPackingShape : PackingShape<TwoDimensionalPacking>, IComparable<RectangularPackingShape> {
     35  public class RectangularPackingShape : PackingShape<TwoDimensionalPacking>, IComparable<RectangularPackingShape> {
    3636    public int Height {
    3737      get { return ((IFixedValueParameter<IntValue>)Parameters["Height"]).Value.Value; }
     
    4949      : base(original, cloner) {
    5050    }
    51     protected RectangularPackingShape()
     51    public RectangularPackingShape()
    5252      : base() {
    5353      Parameters.Add(new FixedValueParameter<IntValue>("Width"));
    5454      Parameters.Add(new FixedValueParameter<IntValue>("Height"));
    5555    }
    56     protected RectangularPackingShape(int width, int height)
     56    public RectangularPackingShape(int width, int height)
    5757      : this() {
    5858      this.Height = height;
    5959      this.Width = width;
     60    }
     61
     62    public override IDeepCloneable Clone(Cloner cloner) {
     63      return new RectangularPackingShape(this, cloner);
    6064    }
    6165
Note: See TracChangeset for help on using the changeset viewer.