- Timestamp:
- 05/15/09 19:11:47 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Visualization/3.2/ChartDataRowsModelDataCollector.cs
r1530 r1840 39 39 /// <summary> 40 40 /// Initializes a new instance of <see cref="ChartDataRowsModelDataCollector"/> with two variable infos 41 /// (<c>VariableNames</c> and <c> Values</c>).41 /// (<c>VariableNames</c> and <c>Model</c>). 42 42 /// </summary> 43 43 public ChartDataRowsModelDataCollector() { … … 47 47 ItemList<StringData> variableNames = new ItemList<StringData>(); 48 48 AddVariable(new Variable("VariableNames", variableNames)); 49 AddVariableInfo(new VariableInfo("Model", "Data model in which the collected values should be fed.", typeof(IChartDataRowsModel), VariableKind. New | VariableKind.In | VariableKind.Out));49 AddVariableInfo(new VariableInfo("Model", "Data model in which the collected values should be fed.", typeof(IChartDataRowsModel), VariableKind.In | VariableKind.Out)); 50 50 } 51 51 … … 59 59 IChartDataRowsModel model = GetVariableValue<IChartDataRowsModel>("Model", scope, true, false); 60 60 61 // if necessary, add a new model62 if (model == null) {63 model = new ChartDataRowsModel();64 for (int i = 0; i < names.Count; i++)65 model.AddDataRow(new DataRow(names[i].Data)); // create new data row for each variable name to collect66 67 IVariableInfo info = GetVariableInfo("Model");68 if (info.Local)69 AddVariable(new Variable(info.ActualName, model));70 else71 scope.AddVariable(new Variable(scope.TranslateName(info.FormalName), model));72 }73 74 61 // collect data values and feed them into the model 75 62 for (int i = 0; i < names.Count; i++) {
Note: See TracChangeset
for help on using the changeset viewer.