Free cookie consent management tool by TermsFeed Policy Generator

source: trunk/sources/HeuristicLab.DataPreprocessing/3.4/Implementations/PreprocessingDataTable.cs @ 13397

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

#2206: Merged data preprocessing into the trunk.

File size: 1.1 KB
RevLine 
[10803]1using System;
2using HeuristicLab.Analysis;
[11114]3using HeuristicLab.Common;
[10803]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() {
[11114]12      SelectedRows = new NamedItemCollection<DataRow>();
[10803]13    }
14    public PreprocessingDataTable(string name)
15      : base(name) {
[11114]16      SelectedRows = new NamedItemCollection<DataRow>();
[10803]17    }
18
[11114]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
[10803]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.