Free cookie consent management tool by TermsFeed Policy Generator

source: branches/DataPreprocessingImprovements/3.4/Implementations/PreprocessingDataTable.cs @ 12051

Last change on this file since 12051 was 11114, checked in by mkommend, 10 years ago

#2206: Merged data preprocessing into the trunk.

File size: 1.1 KB
Line 
1using System;
2using HeuristicLab.Analysis;
3using HeuristicLab.Common;
4using HeuristicLab.Core;
5
6namespace HeuristicLab.DataPreprocessing.Implementations {
7  [Item("PreprossingDataTable", "A table of data values.")]
8  public class PreprocessingDataTable : DataTable {
9
10    public PreprocessingDataTable()
11      : base() {
12      SelectedRows = new NamedItemCollection<DataRow>();
13    }
14    public PreprocessingDataTable(string name)
15      : base(name) {
16      SelectedRows = new NamedItemCollection<DataRow>();
17    }
18
19    protected PreprocessingDataTable(PreprocessingDataTable original, Cloner cloner)
20      : base(original, cloner) {
21      this.selectedRows = cloner.Clone(original.selectedRows);
22    }
23    public override IDeepCloneable Clone(Cloner cloner) {
24      return new PreprocessingDataTable(this, cloner);
25    }
26
27    private NamedItemCollection<DataRow> selectedRows;
28    public NamedItemCollection<DataRow> SelectedRows {
29      get { return selectedRows; }
30      private set {
31        if (selectedRows != null) throw new InvalidOperationException("Rows already set");
32        selectedRows = value;
33      }
34    }
35
36  }
37}
Note: See TracBrowser for help on using the repository browser.