Free cookie consent management tool by TermsFeed Policy Generator

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

Last change on this file since 7624 was 7228, checked in by epitzer, 13 years ago

#1622: Move run collection modifiers into a separate folder

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.