Changeset 9614 for branches/HeuristicLab.DataImporter/HeuristicLab.DataImporter.Command/ChangeValues
- Timestamp:
- 06/12/13 13:32:34 (12 years ago)
- Location:
- branches/HeuristicLab.DataImporter/HeuristicLab.DataImporter.Command/ChangeValues
- Files:
-
- 13 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.DataImporter/HeuristicLab.DataImporter.Command/ChangeValues/BoxCoxTransformationCommand.cs
r7267 r9614 21 21 22 22 using System; 23 using System.Collections.Generic; 24 using System.Linq; 25 using System.Text; 26 using System.Xml; 23 using HeuristicLab.DataImporter.Command.View; 27 24 using HeuristicLab.DataImporter.Data; 28 25 using HeuristicLab.DataImporter.Data.CommandBase; 29 26 using HeuristicLab.DataImporter.Data.Model; 30 using HeuristicLab.DataImporter.Command.View;31 27 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 32 28 … … 36 32 Position = 6, OptionsView = typeof(BoxCoxTransformationCommandView))] 37 33 public class BoxCoxTransformationCommand : ColumnGroupCommandWithAffectedColumnsBase { 38 private BoxCoxTransformationCommand() 39 : base(null, string.Empty, null) { 40 } 34 [StorableConstructor] 35 protected BoxCoxTransformationCommand(bool deserializing) : base(deserializing) { } 41 36 42 37 public BoxCoxTransformationCommand(DataSet dataSet, string columnGroupName, int[] affectedColumns) -
branches/HeuristicLab.DataImporter/HeuristicLab.DataImporter.Command/ChangeValues/DeleteRowsWithGivenValueCommand.cs
r7267 r9614 22 22 using System; 23 23 using System.Collections.Generic; 24 using System.Drawing; 24 25 using System.Linq; 25 using System.Text; 26 using System.Xml; 26 using HeuristicLab.DataImporter.Command.View; 27 27 using HeuristicLab.DataImporter.Data; 28 28 using HeuristicLab.DataImporter.Data.CommandBase; 29 29 using HeuristicLab.DataImporter.Data.Model; 30 using HeuristicLab.DataImporter.Command.View;31 30 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 32 using System.Drawing;33 31 34 32 namespace HeuristicLab.DataImporter.Command { … … 39 37 private Dictionary<int, IComparable[]> deletedRows; 40 38 41 private DeleteRowsWithGivenValueCommand() 42 : base(null, string.Empty, null) { 39 [StorableConstructor] 40 protected DeleteRowsWithGivenValueCommand(bool deserializing) 41 : base(deserializing) { 43 42 deletedRows = new Dictionary<int, IComparable[]>(); 44 43 } -
branches/HeuristicLab.DataImporter/HeuristicLab.DataImporter.Command/ChangeValues/FilterCommandBase.cs
r7267 r9614 20 20 #endregion 21 21 22 using System;23 using System.Collections.Generic;24 using System.Linq;25 using System.Text;26 using System.Xml;27 using HeuristicLab.DataImporter.Data;28 22 using HeuristicLab.DataImporter.Data.CommandBase; 29 23 using HeuristicLab.DataImporter.Data.Model; 30 using HeuristicLab.DataImporter.Command.View;31 24 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 32 25 … … 34 27 [StorableClass] 35 28 public abstract class FilterCommandBase : ColumnGroupCommandWithAffectedColumnsBase { 36 private FilterCommandBase() 37 : base(null,string.Empty,null) { 38 } 29 [StorableConstructor] 30 protected FilterCommandBase(bool deserializing) : base(deserializing) { } 39 31 40 32 public FilterCommandBase(DataSet dataSet, string columnGroupName, int[] affectedColumns) 41 33 : base(dataSet, columnGroupName, affectedColumns) { 42 34 } 43 35 44 45 46 47 48 49 36 [Storable] 37 private int windowSize; 38 public int WindowSize { 39 get { return this.windowSize; } 40 set { this.windowSize = value; } 41 } 50 42 } 51 43 } -
branches/HeuristicLab.DataImporter/HeuristicLab.DataImporter.Command/ChangeValues/FilterMovingAverageCommand.cs
r7267 r9614 22 22 using System; 23 23 using System.Collections.Generic; 24 using System.Linq; 25 using System.Text; 26 using System.Xml; 24 using HeuristicLab.DataImporter.Command.View; 27 25 using HeuristicLab.DataImporter.Data; 28 26 using HeuristicLab.DataImporter.Data.CommandBase; 29 27 using HeuristicLab.DataImporter.Data.Model; 30 using HeuristicLab.DataImporter.Command.View;31 28 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 32 29 … … 39 36 private ICollection<int> oldSortedColumnIndices; 40 37 41 private FilterMovingAverageCommand() 42 : base(null, string.Empty, null) { 38 [StorableConstructor] 39 protected FilterMovingAverageCommand(bool deserializing) 40 : base(deserializing) { 43 41 oldColumns = new Dictionary<int, DoubleColumn>(); 44 42 } -
branches/HeuristicLab.DataImporter/HeuristicLab.DataImporter.Command/ChangeValues/FilterMovingMedianCommand.cs
r7267 r9614 20 20 #endregion 21 21 22 using System;23 22 using System.Collections.Generic; 24 using System.Linq; 25 using System.Text; 26 using System.Xml; 23 using HeuristicLab.DataImporter.Command.View; 27 24 using HeuristicLab.DataImporter.Data; 28 25 using HeuristicLab.DataImporter.Data.CommandBase; 29 26 using HeuristicLab.DataImporter.Data.Model; 30 using HeuristicLab.DataImporter.Command.View;31 27 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 32 28 … … 39 35 private ICollection<int> oldSortedColumnIndices; 40 36 41 private FilterMovingMedianCommand() 42 : base(null, string.Empty, null) { 37 [StorableConstructor] 38 protected FilterMovingMedianCommand(bool deserializing) 39 : base(deserializing) { 43 40 oldColumns = new Dictionary<int, DoubleColumn>(); 44 41 } -
branches/HeuristicLab.DataImporter/HeuristicLab.DataImporter.Command/ChangeValues/FilterSavitzkyGolayCommand.cs
r9597 r9614 46 46 public int OrderOfDerivative { get; set; } 47 47 48 private FilterSavitzkyGolayCommand() 49 : base(null, string.Empty, null) { 48 [StorableConstructor] 49 protected FilterSavitzkyGolayCommand(bool deserializing) 50 : base(deserializing) { 50 51 oldColumns = new Dictionary<int, DoubleColumn>(); 51 52 } -
branches/HeuristicLab.DataImporter/HeuristicLab.DataImporter.Command/ChangeValues/LinearTransformationCommand.cs
r7267 r9614 20 20 #endregion 21 21 22 using System; 23 using System.Collections.Generic; 24 using System.Linq; 25 using System.Text; 26 using System.Xml; 22 using HeuristicLab.DataImporter.Command.View; 27 23 using HeuristicLab.DataImporter.Data; 28 24 using HeuristicLab.DataImporter.Data.CommandBase; 29 25 using HeuristicLab.DataImporter.Data.Model; 30 using HeuristicLab.DataImporter.Command.View;31 26 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 32 27 … … 36 31 Position = 6, OptionsView = typeof(LinearTransformationCommandView))] 37 32 public class LinearTransformationCommand : ColumnGroupCommandWithAffectedColumnsBase { 38 private LinearTransformationCommand() 39 : base(null, string.Empty, null) { 40 } 33 [StorableConstructor] 34 protected LinearTransformationCommand(bool deserializing) : base(deserializing) { } 41 35 42 36 public LinearTransformationCommand(DataSet dataSet, string columnGroupName, int[] affectedColumns) -
branches/HeuristicLab.DataImporter/HeuristicLab.DataImporter.Command/ChangeValues/NormalDistributionScalingCommand.cs
r7267 r9614 20 20 #endregion 21 21 22 using System;23 22 using System.Collections.Generic; 24 using System.Linq; 25 using System.Text; 26 using System.Xml; 23 using HeuristicLab.DataImporter.Command.View; 27 24 using HeuristicLab.DataImporter.Data; 28 25 using HeuristicLab.DataImporter.Data.CommandBase; 29 26 using HeuristicLab.DataImporter.Data.Model; 30 using HeuristicLab.DataImporter.Command.View;31 27 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 32 28 … … 38 34 private List<KeyValuePair<double, double>> oldNormalDistribution; 39 35 40 private NormalDistributionScalingCommand() 41 : base(null, string.Empty, null) { 36 [StorableConstructor] 37 protected NormalDistributionScalingCommand(bool deserializing) 38 : base(deserializing) { 42 39 oldNormalDistribution = new List<KeyValuePair<double, double>>(); 43 40 } -
branches/HeuristicLab.DataImporter/HeuristicLab.DataImporter.Command/ChangeValues/PercentalChangeCommand.cs
r7267 r9614 20 20 #endregion 21 21 22 using System;23 22 using System.Collections.Generic; 24 23 using System.Linq; 25 using System.Text;26 using System.Xml;27 24 using HeuristicLab.DataImporter.Data; 28 25 using HeuristicLab.DataImporter.Data.CommandBase; 29 26 using HeuristicLab.DataImporter.Data.Model; 30 using HeuristicLab.DataImporter.Command.View;31 27 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 32 28 … … 38 34 private ICollection<int> oldSortedColumnIndices; 39 35 40 private PercentalChangeCommand() 41 : base(null, string.Empty, null) { 36 [StorableConstructor] 37 protected PercentalChangeCommand(bool deserializing) 38 : base(deserializing) { 42 39 oldColumns = new Dictionary<int, DoubleColumn>(); 43 40 } -
branches/HeuristicLab.DataImporter/HeuristicLab.DataImporter.Command/ChangeValues/ScalingBetweenMinAndMaxCommand.cs
r7267 r9614 20 20 #endregion 21 21 22 using System;23 22 using System.Collections.Generic; 24 using System.Linq; 25 using System.Text; 26 using System.Windows.Forms; 27 using System.Xml; 23 using HeuristicLab.DataImporter.Command.View; 28 24 using HeuristicLab.DataImporter.Data; 29 25 using HeuristicLab.DataImporter.Data.CommandBase; 30 26 using HeuristicLab.DataImporter.Data.Model; 31 using HeuristicLab.DataImporter.Command.View;32 27 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 33 28 … … 40 35 private List<double> oldMaxValues; 41 36 42 private ScalingBetweenMinAndMaxCommand() 43 : base(null, string.Empty, null) { 37 [StorableConstructor] 38 protected ScalingBetweenMinAndMaxCommand(bool deserializing) 39 : base(deserializing) { 44 40 oldMinValues = new List<double>(); 45 41 oldMaxValues = new List<double>(); -
branches/HeuristicLab.DataImporter/HeuristicLab.DataImporter.Command/ChangeValues/SearchAndReplaceCommand.cs
r7267 r9614 22 22 using System; 23 23 using System.Collections.Generic; 24 using System.Linq;25 using System.Text;26 24 using System.Drawing; 27 25 using System.Windows.Forms; 28 using System.Xml;26 using HeuristicLab.DataImporter.Command.View; 29 27 using HeuristicLab.DataImporter.Data; 30 28 using HeuristicLab.DataImporter.Data.CommandBase; 31 29 using HeuristicLab.DataImporter.Data.Model; 32 using HeuristicLab.DataImporter.Command.View;33 30 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 34 31 … … 42 39 private Dictionary<ColumnBase, SortOrder> oldSortOrder; 43 40 44 private SearchAndReplaceCommand() 45 : base(null, string.Empty, null) { 41 [StorableConstructor] 42 protected SearchAndReplaceCommand(bool deserializing) 43 : base(deserializing) { 46 44 changedCells = new Dictionary<Point, IComparable>(); 47 45 oldSorteColumnIndices = new List<int>(); -
branches/HeuristicLab.DataImporter/HeuristicLab.DataImporter.Command/ChangeValues/SearchCommandBase.cs
r7267 r9614 20 20 #endregion 21 21 22 using System;23 using System.Collections.Generic;24 using System.Linq;25 using System.Text;26 22 using HeuristicLab.DataImporter.Data.CommandBase; 23 using HeuristicLab.DataImporter.Data.Model; 27 24 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 28 using HeuristicLab.DataImporter.Data.Model;29 25 30 26 namespace HeuristicLab.DataImporter.Command { 31 27 [StorableClass] 32 28 public abstract class SearchCommandBase : ColumnGroupCommandWithAffectedColumnsBase { 33 private SearchCommandBase() 34 : base(null,string.Empty,null) { 35 } 36 37 public SearchCommandBase(DataSet dataSet, string columnGroupName, int[] affectedColumns) : 29 [StorableConstructor] 30 protected SearchCommandBase(bool deserializing) : base(deserializing) { } 31 protected SearchCommandBase(DataSet dataSet, string columnGroupName, int[] affectedColumns) : 38 32 base(dataSet, columnGroupName, affectedColumns) { 39 33 } 40 34 41 42 43 44 45 46 35 [Storable] 36 private string searchValue; 37 public string SearchValue { 38 get { return this.searchValue; } 39 set { this.searchValue = string.IsNullOrEmpty(value) ? null : value.Trim(); } 40 } 47 41 } 48 42 } -
branches/HeuristicLab.DataImporter/HeuristicLab.DataImporter.Command/ChangeValues/SearchWithMatchOperationCommandBase.cs
r7267 r9614 22 22 using System; 23 23 using System.Collections.Generic; 24 using System.Linq; 25 using System.Text; 24 using System.Drawing; 26 25 using HeuristicLab.DataImporter.Data.CommandBase; 26 using HeuristicLab.DataImporter.Data.Model; 27 27 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 28 using HeuristicLab.DataImporter.Data.Model;29 using System.Drawing;30 28 31 29 namespace HeuristicLab.DataImporter.Command { … … 39 37 [StorableClass] 40 38 public abstract class SearchWithMatchOperationCommandBase : SearchCommandBase { 41 private SearchWithMatchOperationCommandBase() 42 : base(null, string.Empty, null) { 43 } 44 45 public SearchWithMatchOperationCommandBase(DataSet dataSet, string columnGroupName, int[] affectedColumns) : 39 [StorableConstructor] 40 protected SearchWithMatchOperationCommandBase(bool deserializing) : base(deserializing) { } 41 protected SearchWithMatchOperationCommandBase(DataSet dataSet, string columnGroupName, int[] affectedColumns) : 46 42 base(dataSet, columnGroupName, affectedColumns) { 47 43 } … … 121 117 break; 122 118 case MatchOperation.Larger: 123 compareFunction = (left, right) => { 119 compareFunction = (left, right) => { 124 120 if (left == null && right == null) return false; 125 121 else if (left != null && right == null) return false; 126 122 else if (left == null && right != null) return false; 127 return left.CompareTo(right) < 0; }; 123 return left.CompareTo(right) < 0; 124 }; 128 125 break; 129 126 default:
Note: See TracChangeset
for help on using the changeset viewer.