Free cookie consent management tool by TermsFeed Policy Generator

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

#1734: Added StorableConstructor to all storable DataImporter classes.

Location:
branches/HeuristicLab.DataImporter/HeuristicLab.DataImporter.Command/Aggregation
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • branches/HeuristicLab.DataImporter/HeuristicLab.DataImporter.Command/Aggregation/AggregateCommandBase.cs

    r7625 r9614  
    2323using System.Collections.Generic;
    2424using System.Linq;
    25 using System.Text;
    26 using System.Xml;
    2725using HeuristicLab.DataImporter.Data.CommandBase;
    2826using HeuristicLab.DataImporter.Data.Model;
     
    3230  [StorableClass]
    3331  public abstract class AggregateCommandBase : ColumnGroupCommandWithAffectedColumnsBase {
    34     private AggregateCommandBase()
    35       : base(null, string.Empty, null) {
     32    [StorableConstructor]
     33    protected AggregateCommandBase(bool deserializing)
     34      : base(deserializing) {
    3635      oldColumns = new List<ColumnBase>();
    3736      newColumns = new List<ColumnBase>();
    3837      positions = new List<int>();
    39       changeNullValuesOnly = true;
    4038    }
    4139
  • branches/HeuristicLab.DataImporter/HeuristicLab.DataImporter.Command/Aggregation/AggregateWithMaxCommand.cs

    r7267 r9614  
    2121
    2222using System;
    23 using System.Collections.Generic;
    24 using System.Linq;
    25 using System.Text;
     23using HeuristicLab.DataImporter.Command.View;
    2624using HeuristicLab.DataImporter.Data;
    2725using HeuristicLab.DataImporter.Data.CommandBase;
    2826using HeuristicLab.DataImporter.Data.Model;
    29 using HeuristicLab.DataImporter.Command.View;
    3027using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
    3128
     
    3532    , "Aggregation", Position = 4, OptionsView = typeof(AggregationCommandView))]
    3633  public class AggregateWithMaxCommand : AggregateCommandBase {
    37     private AggregateWithMaxCommand()
    38       : base(null,string.Empty,null) {
    39     }
     34    [StorableConstructor]
     35    protected AggregateWithMaxCommand(bool deserializing) : base(deserializing) { }
    4036
    4137    public AggregateWithMaxCommand(DataSet dataSet, string columnGroupName, int[] affectedColumns)
  • branches/HeuristicLab.DataImporter/HeuristicLab.DataImporter.Command/Aggregation/AggregateWithMeanCommand.cs

    r7267 r9614  
    2121
    2222using System;
    23 using System.Collections.Generic;
    24 using System.Linq;
    25 using System.Text;
     23using HeuristicLab.DataImporter.Command.View;
    2624using HeuristicLab.DataImporter.Data;
    2725using HeuristicLab.DataImporter.Data.CommandBase;
    2826using HeuristicLab.DataImporter.Data.Model;
    29 using HeuristicLab.DataImporter.Command.View;
    3027using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
    3128
     
    3532    "Aggregation", Position = 0, OptionsView = typeof(AggregationCommandView))]
    3633  public class AggregateWithMeanCommand : AggregateCommandBase {
    37     private AggregateWithMeanCommand()
    38       : base(null,string.Empty,null) {
    39     }
     34    [StorableConstructor]
     35    protected AggregateWithMeanCommand(bool deserializing) : base(deserializing) { }
    4036
    4137    public AggregateWithMeanCommand(DataSet dataSet, string columnGroupName, int[] affectedColumns)
     
    5854        }
    5955      }
    60       return cnt !=0 ? value/cnt : (double?)null;
     56      return cnt != 0 ? value / cnt : (double?)null;
    6157    }
    6258  }
  • branches/HeuristicLab.DataImporter/HeuristicLab.DataImporter.Command/Aggregation/AggregateWithMedianCommand.cs

    r7267 r9614  
    2121
    2222using System;
    23 using System.Collections.Generic;
    24 using System.Linq;
    25 using System.Text;
     23using HeuristicLab.DataImporter.Command.View;
    2624using HeuristicLab.DataImporter.Data;
    2725using HeuristicLab.DataImporter.Data.CommandBase;
    2826using HeuristicLab.DataImporter.Data.Model;
    29 using HeuristicLab.DataImporter.Command.View;
    3027using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
    3128
     
    3532   "Aggregation", Position = 1, OptionsView = typeof(AggregationCommandView))]
    3633  public class AggregateWithMedianCommand : AggregateCommandBase {
    37     private AggregateWithMedianCommand()
    38       : base(null,string.Empty,null) {
    39     }
     34    [StorableConstructor]
     35    protected AggregateWithMedianCommand(bool deserializing) : base(deserializing) { }
    4036
    4137    public AggregateWithMedianCommand(DataSet dataSet, string columnGroupName, int[] affectedColumns)
  • branches/HeuristicLab.DataImporter/HeuristicLab.DataImporter.Command/Aggregation/AggregateWithMinCommand.cs

    r7267 r9614  
    2121
    2222using System;
    23 using System.Collections.Generic;
    24 using System.Linq;
    25 using System.Text;
     23using HeuristicLab.DataImporter.Command.View;
    2624using HeuristicLab.DataImporter.Data;
    2725using HeuristicLab.DataImporter.Data.CommandBase;
    2826using HeuristicLab.DataImporter.Data.Model;
    29 using HeuristicLab.DataImporter.Command.View;
    3027using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
    3128
     
    3532   "Aggregation", Position = 3, OptionsView = typeof(AggregationCommandView))]
    3633  public class AggregateWithMinCommand : AggregateCommandBase {
    37 
    38     private AggregateWithMinCommand()
    39       : base(null, string.Empty, null) {
    40     }
     34    [StorableConstructor]
     35    protected AggregateWithMinCommand(bool deserializing) : base(deserializing) { }
    4136
    4237    public AggregateWithMinCommand(DataSet dataSet, string columnGroupName, int[] affectedColumns)
  • branches/HeuristicLab.DataImporter/HeuristicLab.DataImporter.Command/Aggregation/AggregateWithSumCommand.cs

    r7267 r9614  
    2121
    2222using System;
    23 using System.Collections.Generic;
    24 using System.Linq;
    25 using System.Text;
     23using HeuristicLab.DataImporter.Command.View;
    2624using HeuristicLab.DataImporter.Data;
    2725using HeuristicLab.DataImporter.Data.CommandBase;
    2826using HeuristicLab.DataImporter.Data.Model;
    29 using HeuristicLab.DataImporter.Command.View;
    3027using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
    3128
     
    3532   "Aggregation", Position = 2, OptionsView = typeof(AggregationCommandView))]
    3633  public class AggregateWithSumCommand : AggregateCommandBase {
    37     private AggregateWithSumCommand()
    38       : base(null,string.Empty,null) {
    39     }
     34    [StorableConstructor]
     35    protected AggregateWithSumCommand(bool deserializing) : base(deserializing) { }
    4036
    4137    public AggregateWithSumCommand(DataSet dataSet, string columnGroupName, int[] affectedColumns)
  • branches/HeuristicLab.DataImporter/HeuristicLab.DataImporter.Command/Aggregation/DeleteRowsWithDuplicateKeyValuesCommand.cs

    r7625 r9614  
    2323using System.Collections.Generic;
    2424using System.Linq;
    25 using System.Text;
    2625using HeuristicLab.DataImporter.Data;
    2726using HeuristicLab.DataImporter.Data.CommandBase;
     
    3433  public class DeleteRowsWithDuplicateKeyValuesCommand : ColumnGroupCommandBase {
    3534    private Dictionary<int, IComparable[]> deletedRows;
    36     private DeleteRowsWithDuplicateKeyValuesCommand()
    37       : base(null, string.Empty) {
     35    [StorableConstructor]
     36    protected DeleteRowsWithDuplicateKeyValuesCommand(bool deserializing)
     37      : base(deserializing) {
    3838      deletedRows = new Dictionary<int, IComparable[]>();
    3939    }
Note: See TracChangeset for help on using the changeset viewer.