Changeset 15110 for trunk/sources/HeuristicLab.DataPreprocessing/3.4/Data/TransactionalPreprocessingData.cs
- Timestamp:
- 07/03/17 10:57:53 (7 years ago)
- Location:
- trunk/sources/HeuristicLab.DataPreprocessing
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.DataPreprocessing
-
Property
svn:mergeinfo
set to
/branches/DataPreprocessing Enhancements/HeuristicLab.DataPreprocessing merged eligible
-
Property
svn:mergeinfo
set to
-
trunk/sources/HeuristicLab.DataPreprocessing/3.4
-
trunk/sources/HeuristicLab.DataPreprocessing/3.4/Data/TransactionalPreprocessingData.cs
r14185 r15110 33 33 [Item("PreprocessingData", "Represents data used for preprocessing.")] 34 34 public class TransactionalPreprocessingData : PreprocessingData, ITransactionalPreprocessingData { 35 36 35 private class Snapshot { 37 36 public IList<IList> VariableValues { get; set; } … … 70 69 TrainingPartition = new IntRange(TrainingPartition.Start, TrainingPartition.End), 71 70 TestPartition = new IntRange(TestPartition.Start, TestPartition.End), 72 Transformations = new List<ITransformation>( transformations),71 Transformations = new List<ITransformation>(Transformations), 73 72 ChangedType = changedType, 74 73 ChangedColumn = column, … … 83 82 84 83 #region NamedItem abstract Member Implementations 85 86 84 public override IDeepCloneable Clone(Cloner cloner) { 87 85 return new TransactionalPreprocessingData(this, cloner); 88 86 } 89 90 87 #endregion 91 88 92 89 #region Overridden IPreprocessingData Members 93 94 90 public override T GetCell<T>(int columnIndex, int rowIndex) { 95 91 return (T)variableValues[columnIndex][rowIndex]; … … 216 212 } 217 213 218 219 214 public override void InsertRow(int rowIndex) { 220 215 SaveSnapshot(DataPreprocessingChangedEventType.DeleteRow, -1, rowIndex); … … 346 341 347 342 #region TransactionalPreprocessingData members 348 349 343 public bool IsUndoAvailable { 350 344 get { return undoHistory.Count > 0; } … … 358 352 TrainingPartition = previousSnapshot.TrainingPartition; 359 353 TestPartition = previousSnapshot.TestPartition; 360 transformations = previousSnapshot.Transformations;354 Transformations = previousSnapshot.Transformations; 361 355 undoHistory.Remove(previousSnapshot); 362 356 OnChanged(previousSnapshot.ChangedType, … … 384 378 OnChanged(@event, -1, -1); 385 379 } 386 387 380 #endregion 388 381 }
Note: See TracChangeset
for help on using the changeset viewer.