Free cookie consent management tool by TermsFeed Policy Generator

source: trunk/sources/HeuristicLab.Optimization/3.3/RunCollectionRunRemover.cs @ 6986

Last change on this file since 6986 was 6986, checked in by epitzer, 12 years ago

#1679 Add simple run remover that removes all currently visible runs. All existing filters can be used to remove runs selectively.

File size: 1.0 KB
Line 
1using System.Collections.Generic;
2using HeuristicLab.Common;
3using HeuristicLab.Core;
4using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
5
6namespace HeuristicLab.Optimization {
7  [Item("RunCollection Run Remover", "Removes all currently visible runs. Use the filtering tab to selectively remove runs.")]
8  [StorableClass]
9  public class RunCollectionRunRemover : ParameterizedNamedItem, IRunCollectionModifier {
10
11    #region Construction & Cloning
12    [StorableConstructor]
13    protected RunCollectionRunRemover(bool deserializing) : base(deserializing) { }
14    protected RunCollectionRunRemover(RunCollectionRunRemover original, Cloner cloner) : base(original, cloner) {}
15    public RunCollectionRunRemover() {}
16    public override IDeepCloneable Clone(Cloner cloner) {
17      return new RunCollectionRunRemover(this, cloner);
18    }
19    #endregion
20
21    #region IRunCollectionModifier Members
22    public void Modify(List<IRun> runs) {
23      runs.Clear();
24    }
25    #endregion
26
27  }
28}
Note: See TracBrowser for help on using the repository browser.