Line | |
---|
1 | using System.Collections.Generic;
|
---|
2 | using HeuristicLab.Common;
|
---|
3 | using HeuristicLab.Core;
|
---|
4 | using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
|
---|
5 |
|
---|
6 | namespace 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.