- Timestamp:
- 07/01/14 10:53:46 (10 years ago)
- Location:
- branches/DataPreprocessing
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/DataPreprocessing
- Property svn:mergeinfo changed
/trunk/sources merged: 11008,11012-11014,11019,11024-11027,11031,11034-11035,11048,11050-11052,11056-11058,11060
- Property svn:mergeinfo changed
-
branches/DataPreprocessing/HeuristicLab.Problems.DataAnalysis.Trading/3.4/ProblemData.cs
r11009 r11064 1653 1653 1654 1654 public override void AdjustProblemDataProperties(IDataAnalysisProblemData problemData) { 1655 throw new NotImplementedException("TODO"); 1655 var data = problemData as ProblemData; 1656 if (data == null) throw new ArgumentException("The problem data is not a problem data set for trading. Instead a " + problemData.GetType().GetPrettyName() + " was provided.", "problemData"); 1657 1658 string errorMessage; 1659 if (!data.IsProblemDataCompatible(this, out errorMessage)) { 1660 throw new InvalidOperationException(errorMessage); 1661 } 1662 1663 base.AdjustProblemDataProperties(data); 1664 1665 var toDelete = PriceChangeVariableParameter.ValidValues.ToList(); 1666 foreach (var entry in data.PriceChangeVariableParameter.ValidValues) { 1667 if (toDelete.Any(x => x.Value == entry.Value)) { 1668 toDelete.RemoveAll(x => x.Value == entry.Value); 1669 } else { 1670 PriceChangeVariableParameter.ValidValues.Add(new StringValue(entry.Value)); 1671 } 1672 } 1673 PriceChangeVariableParameter.Value = 1674 PriceChangeVariableParameter.ValidValues.Single(v => v.Value == data.PriceChangeVariable); 1675 1676 foreach (var varToDelete in toDelete) PriceChangeVariableParameter.ValidValues.Remove(varToDelete); 1677 1678 TransactionCostsParameter.Value.Value = data.TransactionCosts; 1679 1680 OnChanged(); 1656 1681 } 1657 1682 }
Note: See TracChangeset
for help on using the changeset viewer.