Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
11/14/11 14:12:51 (12 years ago)
Author:
spimming
Message:

#1659:

  • removed uncommented code
  • removed ‘Benchmark Name’ and ‘Benchmark Type’ from result collection
  • placed Getters/Setters after data members
  • added input validation
  • updated parameter description
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/Benchmarking/sources/HeuristicLab.Algorithms.Benchmarks/3.3/WhetstoneAlgorithm.cs

    r6948 r6987  
    3636    [Storable]
    3737    private byte[][] chunk;
     38    public byte[][] ChunkData {
     39      get { return chunk; }
     40      set { chunk = value; }
     41    }
    3842
    3943    private TimeSpan timeLimit;
     44    public TimeSpan TimeLimit {
     45      get { return timeLimit; }
     46      set { timeLimit = value; }
     47    }
    4048
    4149    private bool stopBenchmark;
    4250
    4351    private CancellationToken cancellationToken;
     52
     53    public string ItemName {
     54      get { return ItemAttribute.GetName(this.GetType()); }
     55    }
     56
     57    public string ItemDescription {
     58      get { return ItemAttribute.GetDescription(this.GetType()); }
     59    }
     60
     61    public Version ItemVersion {
     62      get { return ItemAttribute.GetVersion(this.GetType()); }
     63    }
     64
     65    public Image ItemImage {
     66      get { return HeuristicLab.Common.Resources.VSImageLibrary.Event; }
     67    }
    4468
    4569    #region Benchmark Fields
     
    5579    private double[] e1 = new double[4];
    5680    private int i, j, k, l, n1, n2, n3, n4, n6, n7, n8, n9, n10, n11;
    57 
    58     #endregion
    59 
    60     #region Properties
    61 
    62     public byte[][] ChunkData {
    63       get { return chunk; }
    64       set { chunk = value; }
    65     }
    66 
    67     public TimeSpan TimeLimit {
    68       get { return timeLimit; }
    69       set { timeLimit = value; }
    70     }
    71 
    72     public string ItemName {
    73       get { return ItemAttribute.GetName(this.GetType()); }
    74     }
    75 
    76     public string ItemDescription {
    77       get { return ItemAttribute.GetDescription(this.GetType()); }
    78     }
    79 
    80     public Version ItemVersion {
    81       get { return ItemAttribute.GetVersion(this.GetType()); }
    82     }
    83 
    84     public Image ItemImage {
    85       get { return HeuristicLab.Common.Resources.VSImageLibrary.Event; }
    86     }
    8781
    8882    #endregion
Note: See TracChangeset for help on using the changeset viewer.