Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
10/04/12 15:42:21 (12 years ago)
Author:
mkommend
Message:

#1673: Added new property AlgorithmName to the RunCollection and synced the property with the name of the surrounding IOptimizer. The AlgorithmName is used by the RunCollectionViews as prefix for its caption if it was set.

File:
1 edited

Legend:

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

    r8668 r8738  
    175175      repetitions = 10;
    176176      repetitionsCounter = 0;
    177       Runs = new RunCollection();
     177      Runs = new RunCollection { AlgorithmName = Name };
    178178    }
    179179    public BatchRun(string name)
     
    185185      repetitions = 10;
    186186      repetitionsCounter = 0;
    187       Runs = new RunCollection();
     187      Runs = new RunCollection { AlgorithmName = Name };
    188188    }
    189189    public BatchRun(string name, string description)
     
    194194      repetitions = 10;
    195195      repetitionsCounter = 0;
    196       Runs = new RunCollection();
     196      Runs = new RunCollection { AlgorithmName = Name };
    197197    }
    198198    [StorableConstructor]
     
    278278
    279279    #region Events
     280    protected override void OnNameChanged() {
     281      base.OnNameChanged();
     282      runs.AlgorithmName = Name;
     283    }
     284
    280285    public event EventHandler ExecutionStateChanged;
    281286    private void OnExecutionStateChanged() {
Note: See TracChangeset for help on using the changeset viewer.