Free cookie consent management tool by TermsFeed Policy Generator

Changeset 14041


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

#1966: formatting

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/HeuristicLab.BinPacking/HeuristicLab.Problems.BinPacking/3.3/Encodings/MultiComponentVector/MultiComponentVectorEncoding.cs

    r13032 r14041  
    3636
    3737    [Storable]
    38     public ObservableDictionary<int, ItemList<PackingInformation>> PackingInformations {get;set;}
     38    public ObservableDictionary<int, ItemList<PackingInformation>> PackingInformations { get; set; }
    3939
    4040    public int NrOfBins { get { return PackingInformations.Count; } }
    41     public int NrOfItems { 
     41    public int NrOfItems {
    4242      get {
    4343        int nrOfItems = 0;
    4444        foreach (var entry in PackingInformations) { nrOfItems += entry.Value.Count; }
    4545        return nrOfItems;
    46       } 
    47     } 
     46      }
     47    }
    4848
    4949    [StorableConstructor]
     
    5151    protected MultiComponentVectorEncoding(MultiComponentVectorEncoding original, Cloner cloner)
    5252      : base(original, cloner) {
    53         this.PackingInformations = new ObservableDictionary<int,ItemList<PackingInformation>>();
     53      this.PackingInformations = new ObservableDictionary<int, ItemList<PackingInformation>>();
    5454      foreach (var entry in original.PackingInformations) {
    5555        this.PackingInformations[entry.Key] = cloner.Clone(entry.Value);
     
    6262    public MultiComponentVectorEncoding()
    6363      : base() {
    64         PackingInformations = new ObservableDictionary<int, ItemList<PackingInformation>>();
     64      PackingInformations = new ObservableDictionary<int, ItemList<PackingInformation>>();
    6565    }
    6666
     
    127127
    128128    public PackingInformation(int itemID, bool rotated) {
    129       this.ItemID   = itemID;
    130       this.Rotated      = rotated;
    131     }     
     129      this.ItemID = itemID;
     130      this.Rotated = rotated;
     131    }
    132132    public PackingInformation(PackingInformation original) {
    133133      this.ItemID = original.ItemID;
     
    139139    protected PackingInformation(PackingInformation original, Cloner cloner)
    140140      : base(original, cloner) {
    141         this.ItemID  = original.ItemID;
    142         this.Rotated      = original.Rotated;
     141      this.ItemID = original.ItemID;
     142      this.Rotated = original.Rotated;
    143143    }
    144144    public override IDeepCloneable Clone(Cloner cloner) {
Note: See TracChangeset for help on using the changeset viewer.