Free cookie consent management tool by TermsFeed Policy Generator

source: branches/Benchmarking/sources/HeuristicLab.Optimization/3.3/RunCollectionRunRemover.cs @ 7000

Last change on this file since 7000 was 7000, checked in by ascheibe, 12 years ago

#1659 updated branch from trunk

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.