Changeset 14045 for branches/HeuristicLab.BinPacking/HeuristicLab.Problems.BinPacking.2D/3.3/RectangularPackingItem.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/RectangularPackingItem.cs
r14039 r14045 28 28 using HeuristicLab.Data; 29 29 using HeuristicLab.Parameters; 30 using HeuristicLab.Problems.BinPacking.PackingBin; 30 31 31 32 32 namespace HeuristicLab.Problems.BinPacking.PackingItem { … … 35 35 public class RectangularPackingItem : RectangularPackingShape, IPackingItem { 36 36 37 public RectangularPacking BinTargetBin {38 get { return ((IValueParameter<RectangularPacking Bin>)Parameters["TargetBin"]).Value; }39 set { ((IValueParameter<RectangularPacking Bin>)Parameters["TargetBin"]).Value = value; }37 public RectangularPackingShape TargetBin { 38 get { return ((IValueParameter<RectangularPackingShape>)Parameters["TargetBin"]).Value; } 39 set { ((IValueParameter<RectangularPackingShape>)Parameters["TargetBin"]).Value = value; } 40 40 } 41 41 … … 62 62 public RectangularPackingItem() 63 63 : base() { 64 Parameters.Add(new ValueParameter<RectangularPacking Bin>("TargetBin"));64 Parameters.Add(new ValueParameter<RectangularPackingShape>("TargetBin")); 65 65 Parameters.Add(new FixedValueParameter<DoubleValue>("Weight")); 66 66 Parameters.Add(new FixedValueParameter<IntValue>("Material")); 67 67 } 68 68 69 public RectangularPackingItem(int width, int height, RectangularPacking BintargetBin)69 public RectangularPackingItem(int width, int height, RectangularPackingShape targetBin) 70 70 : this() { 71 71 this.Width = width; 72 72 this.Height = height; 73 this.TargetBin = (RectangularPacking Bin)targetBin.Clone();73 this.TargetBin = (RectangularPackingShape)targetBin.Clone(); 74 74 } 75 75
Note: See TracChangeset
for help on using the changeset viewer.