- Timestamp:
- 01/22/14 16:32:24 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/DataPreprocessing/HeuristicLab.DataPreprocessing/3.3/Implementations/LineChartLogic.cs
r10377 r10382 7 7 namespace HeuristicLab.DataPreprocessing 8 8 { 9 public class LineChartLogic :ILineChartLogic9 public class LineChartLogic : ILineChartLogic 10 10 { 11 11 private IPreprocessingData preprocessingData; 12 private DataTable dataTable; 12 13 13 14 public LineChartLogic(IPreprocessingData preprocessingData) { 14 15 this.preprocessingData = preprocessingData; 15 16 dataTable = new DataTable("LineChart"); 17 FillDataTable(); 16 18 } 17 19 18 p ublic void FillDataTable(DataTable dataTable) {20 private void FillDataTable() { 19 21 IEnumerable<string> variableNames = preprocessingData.VariableNames; 20 22 … … 27 29 28 30 } 31 32 public IEnumerable<object> GetVariableNames() 33 { 34 return preprocessingData.VariableNames; 35 } 36 37 public DataTable GetDataTable() 38 { 39 return dataTable; 40 } 41 42 43 #region ILineChartLogic Members 44 45 public void RemoveVariable(string name) { 46 dataTable.Rows.Remove(name); 47 } 48 49 public void AddVariable(string name) { 50 IList<double> values = preprocessingData.GetValues<double>(name); 51 DataRow row = new DataRow(name, "", values); 52 dataTable.Rows.Add(row); 53 } 54 55 #endregion 56 57 public bool VariableIsDisplayed(string name) { 58 59 foreach (var item in dataTable.Rows) { 60 if(item.Name == name) 61 return true; 62 } 63 return false; 64 } 65 29 66 } 30 67 }
Note: See TracChangeset
for help on using the changeset viewer.