Line | |
---|
1 | using System;
|
---|
2 | using HeuristicLab.Analysis;
|
---|
3 | using HeuristicLab.Common;
|
---|
4 | using HeuristicLab.Core;
|
---|
5 |
|
---|
6 | namespace 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.