Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
04/01/10 04:33:08 (13 years ago)
Author:
swagner
Message:

Continued work on algorithm batch processing (#947).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Optimization/3.3/BatchRun.cs

    r3226 r3246  
    7474
    7575    [Storable]
    76     private ResultCollectionList results;
    77     public ResultCollectionList Results {
     76    private ResultCollection results;
     77    public ResultCollection Results {
    7878      get { return results; }
    7979    }
     
    111111      : base() {
    112112      repetitions = 10;
    113       results = new ResultCollectionList();
     113      results = new ResultCollection();
    114114      executionTime = TimeSpan.Zero;
    115115    }
    116116    public BatchRun(string name) : base(name) {
    117117      repetitions = 10;
    118       results = new ResultCollectionList();
     118      results = new ResultCollection();
    119119      executionTime = TimeSpan.Zero;
    120120    }
    121121    public BatchRun(string name, string description) : base(name, description) {
    122122      repetitions = 10;
    123       results = new ResultCollectionList();
     123      results = new ResultCollection();
    124124      executionTime = TimeSpan.Zero;
    125125    }
     
    129129      clone.Algorithm = (IAlgorithm)cloner.Clone(algorithm);
    130130      clone.repetitions = repetitions;
    131       clone.results = (ResultCollectionList)cloner.Clone(results);
     131      clone.results = (ResultCollection)cloner.Clone(results);
    132132      clone.executionTime = executionTime;
    133133      clone.running = running;
     
    208208
    209209    private void Algorithm_Prepared(object sender, EventArgs e) {
    210       results.Add(Algorithm.Results);
     210      results.Add(new Result("Run " + DateTime.Now.ToString(), Algorithm.Results));
    211211    }
    212212    private void Algorithm_RunningChanged(object sender, EventArgs e) {
Note: See TracChangeset for help on using the changeset viewer.