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/DhrystoneBenchmark.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
     
    6791
    6892    private long Default_Number_Of_Runs = 10000000;
    69 
    70     #endregion
    71 
    72     #region Properties
    73 
    74     public byte[][] ChunkData {
    75       get { return chunk; }
    76       set { chunk = value; }
    77     }
    78 
    79     public TimeSpan TimeLimit {
    80       get { return timeLimit; }
    81       set { timeLimit = value; }
    82     }
    83 
    84     public string ItemName {
    85       get { return ItemAttribute.GetName(this.GetType()); }
    86     }
    87 
    88     public string ItemDescription {
    89       get { return ItemAttribute.GetDescription(this.GetType()); }
    90     }
    91 
    92     public Version ItemVersion {
    93       get { return ItemAttribute.GetVersion(this.GetType()); }
    94     }
    95 
    96     public Image ItemImage {
    97       get { return HeuristicLab.Common.Resources.VSImageLibrary.Event; }
    98     }
    9993
    10094    #endregion
Note: See TracChangeset for help on using the changeset viewer.