Changeset 14043 for branches/HeuristicLab.BinPacking/HeuristicLab.Problems.BinPacking.2D/3.3/RectangularPackingShape.cs
- Timestamp:
- 07/12/16 18:02:28 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.BinPacking/HeuristicLab.Problems.BinPacking.2D/3.3/RectangularPackingShape.cs
r13606 r14043 33 33 [Item("RectangularPackingShape", "Represents the rectangular measures (width, height) of a two-dimensional bin-packing object.")] 34 34 [StorableClass] 35 public abstract class RectangularPackingShape : PackingShape<TwoDimensionalPacking>, I RegularPackingShape, IComparable<RectangularPackingShape> {35 public abstract class RectangularPackingShape : PackingShape<TwoDimensionalPacking>, IComparable<RectangularPackingShape> { 36 36 public int Height { 37 37 get { return ((IFixedValueParameter<IntValue>)Parameters["Height"]).Value.Value; } … … 73 73 } 74 74 75 public int CompareTo(object obj) {75 public override int CompareTo(object obj) { 76 76 var other = obj as RectangularPackingShape; 77 77 if (other != null) return CompareTo(other); … … 118 118 } 119 119 120 public void ApplyHorizontalOrientation() {120 public override void ApplyHorizontalOrientation() { 121 121 if (Width < Height) { 122 122 var aux = Width;
Note: See TracChangeset
for help on using the changeset viewer.