Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
07/12/16 20:03:45 (8 years ago)
Author:
gkronber
Message:

#1966: simplified class names

File:
1 moved

Legend:

Unmodified
Added
Removed
  • branches/HeuristicLab.BinPacking/HeuristicLab.Problems.BinPacking.3D/3.3/PackingItem.cs

    r14048 r14049  
    2828
    2929namespace HeuristicLab.Problems.BinPacking3D {
    30   [Item("CuboidPackingItem", "Represents a cuboidic packing-item for bin-packing problems.")]
     30  [Item("PackingItem (3d)", "Represents a cuboidic packing-item for bin-packing problems.")]
    3131  [StorableClass]
    32   public class CuboidPackingItem : CuboidPackingShape, IPackingItem {
    33     public IValueParameter<CuboidPackingShape> TargetBinParameter {
    34       get { return (IValueParameter<CuboidPackingShape>)Parameters["TargetBin"]; }
     32  public class PackingItem : PackingShape, IPackingItem {
     33    public IValueParameter<PackingShape> TargetBinParameter {
     34      get { return (IValueParameter<PackingShape>)Parameters["TargetBin"]; }
    3535    }
    3636    public IFixedValueParameter<DoubleValue> WeightParameter {
     
    4141    }
    4242
    43     public CuboidPackingShape TargetBin {
     43    public PackingShape TargetBin {
    4444      get { return TargetBinParameter.Value; }
    4545      set { TargetBinParameter.Value = value; }
     
    6161
    6262    [StorableConstructor]
    63     protected CuboidPackingItem(bool deserializing) : base(deserializing) { }
    64     protected CuboidPackingItem(CuboidPackingItem original, Cloner cloner)
     63    protected PackingItem(bool deserializing) : base(deserializing) { }
     64    protected PackingItem(PackingItem original, Cloner cloner)
    6565      : base(original, cloner) {
    6666      RegisterEvents();
    6767    }
    68     public CuboidPackingItem()
     68    public PackingItem()
    6969      : base() {
    70       Parameters.Add(new ValueParameter<CuboidPackingShape>("TargetBin"));
     70      Parameters.Add(new ValueParameter<PackingShape>("TargetBin"));
    7171      Parameters.Add(new FixedValueParameter<DoubleValue>("Weight"));
    7272      Parameters.Add(new FixedValueParameter<IntValue>("Material"));
     
    7575    }
    7676
    77     public CuboidPackingItem(int width, int height, int depth, CuboidPackingShape targetBin, double weight, int material)
     77    public PackingItem(int width, int height, int depth, PackingShape targetBin, double weight, int material)
    7878      : this() {
    7979      this.Width = width;
     
    8282      this.Weight = weight;
    8383      this.Material = material;
    84       this.TargetBin = (CuboidPackingShape)targetBin.Clone();
     84      this.TargetBin = (PackingShape)targetBin.Clone();
    8585    }
    8686
    87     public CuboidPackingItem(int width, int height, int depth, CuboidPackingShape targetBin)
     87    public PackingItem(int width, int height, int depth, PackingShape targetBin)
    8888      : this() {
    8989      this.Width = width;
    9090      this.Height = height;
    9191      this.Depth = depth;
    92       this.TargetBin = (CuboidPackingShape)targetBin.Clone();
     92      this.TargetBin = (PackingShape)targetBin.Clone();
    9393    }
    9494
     
    9999
    100100    public override IDeepCloneable Clone(Cloner cloner) {
    101       return new CuboidPackingItem(this, cloner);
     101      return new PackingItem(this, cloner);
    102102    }
    103103
Note: See TracChangeset for help on using the changeset viewer.