Changeset 1238 for branches/CEDMA-Refactoring-Ticket419/HeuristicLab.GP.StructureIdentification/StandardGP.cs
- Timestamp:
- 03/02/09 17:23:05 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/CEDMA-Refactoring-Ticket419/HeuristicLab.GP.StructureIdentification/StandardGP.cs
r1235 r1238 194 194 } 195 195 196 internal override IOperator CreateLoggingOperator() { 197 CombinedOperator loggingOperator = new CombinedOperator(); 198 loggingOperator.Name = "Logging"; 199 SequentialProcessor seq = new SequentialProcessor(); 200 201 DataCollector collector = new DataCollector(); 202 ItemList<StringData> names = collector.GetVariable("VariableNames").GetValue<ItemList<StringData>>(); 203 names.Add(new StringData("BestQuality")); 204 names.Add(new StringData("AverageQuality")); 205 names.Add(new StringData("WorstQuality")); 206 names.Add(new StringData("BestValidationQuality")); 207 names.Add(new StringData("AverageValidationQuality")); 208 names.Add(new StringData("WorstValidationQuality")); 209 LinechartInjector lineChartInjector = new LinechartInjector(); 210 lineChartInjector.GetVariableInfo("Linechart").ActualName = "Quality Linechart"; 211 lineChartInjector.GetVariable("NumberOfLines").GetValue<IntData>().Data = 6; 212 QualityLogger qualityLogger = new QualityLogger(); 213 QualityLogger validationQualityLogger = new QualityLogger(); 214 validationQualityLogger.Name = "ValidationQualityLogger"; 215 validationQualityLogger.GetVariableInfo("Quality").ActualName = "ValidationQuality"; 216 validationQualityLogger.GetVariableInfo("QualityLog").ActualName = "ValidationQualityLog"; 217 218 seq.AddSubOperator(collector); 219 seq.AddSubOperator(lineChartInjector); 220 seq.AddSubOperator(qualityLogger); 221 seq.AddSubOperator(validationQualityLogger); 222 223 loggingOperator.OperatorGraph.AddOperator(seq); 224 loggingOperator.OperatorGraph.InitialOperator = seq; 225 return loggingOperator; 226 } 227 196 228 public virtual IEditor CreateEditor() { 197 229 return new StandardGpEditor(this);
Note: See TracChangeset
for help on using the changeset viewer.