Rev | Line | |
---|
[10803] | 1 | using System;
|
---|
| 2 | using HeuristicLab.Analysis;
|
---|
[11114] | 3 | using HeuristicLab.Common;
|
---|
[10803] | 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() {
|
---|
[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.