Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
12/14/15 19:52:46 (8 years ago)
Author:
gkronber
Message:

#1966:

  • used Items instead of NamedItems and adapted views (Names/Descriptions) were not set anyway
  • fixed problems identified by Essential unit tests
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/HeuristicLab.BinPacking/HeuristicLab.Problems.BinPacking/3.3/Shapes/PackingShape.cs

    r13032 r13461  
    3030  [Item("PackingShape", "Represents an abstract shape to describe the measures and the positioning of objects related to bin-packing problems.")]
    3131  [StorableClass]
    32   public abstract class PackingShape<D> : NamedItem, IPackingShape
    33     where D: class, IPackingDimensions
    34   {
     32  public abstract class PackingShape<D> : Item, IPackingShape
     33    where D : class, IPackingDimensions {
    3534    public static Type PositionType {
    3635      get { return typeof(D); }
     
    4544    public abstract D Origin { get; }
    4645
    47     public PackingShape(int[] measures) {
     46    protected PackingShape(int[] measures) {
    4847      InitializeFromMeasures(measures);
    4948    }
    50     public PackingShape() {
    5149
    52     }
     50    protected PackingShape() { }
    5351
    5452
Note: See TracChangeset for help on using the changeset viewer.