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.3D/3.3/CuboidPackingShape.cs

    r14043 r14045  
    3232  [Item("CuboidPackingShape", "Represents the cuboid measures (width, height, depth) of a three-dimensional cuboidic bin-packing object.")]
    3333  [StorableClass]
    34   public abstract class CuboidPackingShape : PackingShape<ThreeDimensionalPacking>, IComparable<CuboidPackingShape> {
     34  public class CuboidPackingShape : PackingShape<ThreeDimensionalPacking>, IComparable<CuboidPackingShape> {
    3535    public IFixedValueParameter<IntValue> HeightParameter {
    3636      get { return (IFixedValueParameter<IntValue>)Parameters["Height"]; }
     
    6464      RegisterEvents();
    6565    }
    66     protected CuboidPackingShape()
     66    public CuboidPackingShape()
    6767      : base() {
    6868      Parameters.Add(new FixedValueParameter<IntValue>("Width"));
     
    7373    }
    7474
    75     protected CuboidPackingShape(int width, int height, int depth)
     75    public CuboidPackingShape(int width, int height, int depth)
    7676      : this() {
    7777      this.Width = width;
    7878      this.Height = height;
    7979      this.Depth = depth;
     80    }
     81
     82    public override IDeepCloneable Clone(Cloner cloner) {
     83      return new CuboidPackingShape(this, cloner);
    8084    }
    8185
Note: See TracChangeset for help on using the changeset viewer.