Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
06/12/13 13:32:34 (12 years ago)
Author:
mkommend
Message:

#1734: Added StorableConstructor to all storable DataImporter classes.

Location:
branches/HeuristicLab.DataImporter/HeuristicLab.DataImporter.Command/MissingValues
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • branches/HeuristicLab.DataImporter/HeuristicLab.DataImporter.Command/MissingValues/DeleteColumnsWithMissingValuesThresholdCommand.cs

    r8586 r9614  
    3838    public double Threshold { get { return threshold; } set { threshold = value; } }
    3939
    40     private DeleteColumnsWithMissingValuesThresholdCommand()
    41       : base(null, string.Empty, null) {
    42     }
     40    [StorableConstructor]
     41    protected DeleteColumnsWithMissingValuesThresholdCommand(bool deserializing) : base(deserializing) { }
    4342
    4443    public DeleteColumnsWithMissingValuesThresholdCommand(DataSet dataSet, string columnGroupName, int[] affectedColumns)
  • branches/HeuristicLab.DataImporter/HeuristicLab.DataImporter.Command/MissingValues/DeleteRowsWithMissingValuesCommand.cs

    r7968 r9614  
    3535    private ICollection<int> oldSortedColumnIndices;
    3636
    37     private DeleteRowsWithMissingValuesCommand()
    38       : base(null, string.Empty, null) {
     37    [StorableConstructor]
     38    protected DeleteRowsWithMissingValuesCommand(bool deserializing)
     39      : base(deserializing) {
    3940      oldColumns = new List<ColumnBase>();
    4041    }
  • branches/HeuristicLab.DataImporter/HeuristicLab.DataImporter.Command/MissingValues/DeleteRowsWithMissingValuesThresholdCommand.cs

    r8586 r9614  
    4040    public double Threshold { get { return threshold; } set { threshold = value; } }
    4141
    42     private DeleteRowsWithMissingValuesThresholdCommand()
    43       : base(null, string.Empty) {
     42    [StorableConstructor]
     43    protected DeleteRowsWithMissingValuesThresholdCommand(bool deserializing)
     44      : base(deserializing) {
    4445      deletedRows = new Dictionary<int, IComparable[]>();
    4546    }
  • branches/HeuristicLab.DataImporter/HeuristicLab.DataImporter.Command/MissingValues/FillMissingValueCommandBase.cs

    r7267 r9614  
    2020#endregion
    2121
    22 using System;
    2322using System.Collections.Generic;
    24 using System.Linq;
    25 using System.Text;
    2623using System.Windows.Forms;
    27 using HeuristicLab.DataImporter.Data;
    2824using HeuristicLab.DataImporter.Data.CommandBase;
    2925using HeuristicLab.DataImporter.Data.Model;
     
    3733    protected IEnumerable<SortOrder> oldSortOrder;
    3834
    39     private FillMissingValueCommandBase()
    40       : base(null, string.Empty, null) {
     35    [StorableConstructor]
     36    protected FillMissingValueCommandBase(bool deserializing)
     37      : base(deserializing) {
    4138      nullValues = new Dictionary<int, List<int>>();
    4239    }
  • branches/HeuristicLab.DataImporter/HeuristicLab.DataImporter.Command/MissingValues/FillMissingValuesWithLinearInterpolation.cs

    r7267 r9614  
    2020#endregion
    2121
    22 using System;
    2322using System.Collections.Generic;
    2423using System.Linq;
    25 using System.Text;
    2624using System.Windows.Forms;
    2725using HeuristicLab.DataImporter.Data;
     
    3533    "Handle Missing Values", Position = 2)]
    3634  public class FillMissingValuesWithLinearInterpolation : FillMissingValueCommandBase {
    37     private FillMissingValuesWithLinearInterpolation()
    38       : base(null, string.Empty, null) {
    39     }
    40 
     35    [StorableConstructor]
     36    protected FillMissingValuesWithLinearInterpolation(bool deserializing) : base(deserializing) { }
    4137    public FillMissingValuesWithLinearInterpolation(DataSet dataSet, string columnGroupName, int[] affectedColumns) :
    4238      base(dataSet, columnGroupName, affectedColumns) {
  • branches/HeuristicLab.DataImporter/HeuristicLab.DataImporter.Command/MissingValues/FillMissingValuesWithMeanCommand.cs

    r7267 r9614  
    2020#endregion
    2121
    22 using System;
    2322using System.Collections.Generic;
    2423using System.Linq;
    25 using System.Text;
    2624using System.Windows.Forms;
    2725using HeuristicLab.DataImporter.Data;
     
    3533    "Handle Missing Values", Position = 0)]
    3634  public class FillMissingValuesWithMeanCommand : FillMissingValueCommandBase {
    37     private FillMissingValuesWithMeanCommand()
    38       : base(null, string.Empty, null) {
    39     }
    40 
     35    [StorableConstructor]
     36    protected FillMissingValuesWithMeanCommand(bool deserializing) : base(deserializing) { }
    4137    public FillMissingValuesWithMeanCommand(DataSet dataSet, string columnGroupName, int[] affectedColumns) :
    4238      base(dataSet, columnGroupName, affectedColumns) {
  • branches/HeuristicLab.DataImporter/HeuristicLab.DataImporter.Command/MissingValues/FillMissingValuesWithMedianCommand.cs

    r7267 r9614  
    2020#endregion
    2121
    22 using System;
    2322using System.Collections.Generic;
    2423using System.Linq;
    25 using System.Text;
    2624using System.Windows.Forms;
    2725using HeuristicLab.DataImporter.Data;
     
    3533    "Handle Missing Values", Position = 1)]
    3634  public class FillMissingValuesWithMedianCommand : FillMissingValueCommandBase {
    37     private FillMissingValuesWithMedianCommand()
    38       : base(null, string.Empty, null) {
    39     }
    40 
     35    [StorableConstructor]
     36    protected FillMissingValuesWithMedianCommand(bool deserializing) : base(deserializing) { }
    4137    public FillMissingValuesWithMedianCommand(DataSet dataSet, string columnGroupName, int[] affectedColumns) :
    4238      base(dataSet, columnGroupName, affectedColumns) {
  • branches/HeuristicLab.DataImporter/HeuristicLab.DataImporter.Command/MissingValues/FillMissingValuesWithPreviousValuesCommand.cs

    r7267 r9614  
    2323using System.Collections.Generic;
    2424using System.Linq;
    25 using System.Text;
    2625using System.Windows.Forms;
    2726using HeuristicLab.DataImporter.Data;
     
    3433  [ViewableCommandInfoAttribute("Previous Value", 1, ColumnGroupState.AnySelectedColumnContainsNull, "Handle Missing Values", Position = 3)]
    3534  public class FillMissingValuesWithPreviousValuesCommand : FillMissingValueCommandBase {
    36     private FillMissingValuesWithPreviousValuesCommand()
    37       : base(null, string.Empty, null) {
    38     }
    39 
     35    [StorableConstructor]
     36    protected FillMissingValuesWithPreviousValuesCommand(bool deserializing) : base(deserializing) { }
    4037    public FillMissingValuesWithPreviousValuesCommand(DataSet dataSet, string columnGroupName, int[] affectedColumns) :
    4138      base(dataSet, columnGroupName, affectedColumns) {
Note: See TracChangeset for help on using the changeset viewer.