Changeset 14045 for branches/HeuristicLab.BinPacking/HeuristicLab.Problems.BinPacking.2D/3.3/RectangularPackingShape.cs
- Timestamp:
- 07/12/16 18:23:13 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.BinPacking/HeuristicLab.Problems.BinPacking.2D/3.3/RectangularPackingShape.cs
r14043 r14045 33 33 [Item("RectangularPackingShape", "Represents the rectangular measures (width, height) of a two-dimensional bin-packing object.")] 34 34 [StorableClass] 35 public abstractclass RectangularPackingShape : PackingShape<TwoDimensionalPacking>, IComparable<RectangularPackingShape> {35 public class RectangularPackingShape : PackingShape<TwoDimensionalPacking>, IComparable<RectangularPackingShape> { 36 36 public int Height { 37 37 get { return ((IFixedValueParameter<IntValue>)Parameters["Height"]).Value.Value; } … … 49 49 : base(original, cloner) { 50 50 } 51 p rotectedRectangularPackingShape()51 public RectangularPackingShape() 52 52 : base() { 53 53 Parameters.Add(new FixedValueParameter<IntValue>("Width")); 54 54 Parameters.Add(new FixedValueParameter<IntValue>("Height")); 55 55 } 56 p rotectedRectangularPackingShape(int width, int height)56 public RectangularPackingShape(int width, int height) 57 57 : this() { 58 58 this.Height = height; 59 59 this.Width = width; 60 } 61 62 public override IDeepCloneable Clone(Cloner cloner) { 63 return new RectangularPackingShape(this, cloner); 60 64 } 61 65
Note: See TracChangeset
for help on using the changeset viewer.