public static void GenerateStringReport(StringBuilder stringBuilder, ModelExecutionReport modelExecutionReport, bool spreadSheetFormat) { stringBuilder.Append($"Number of completed layers : {modelExecutionReport.CompletedLayerExecutionReports.Count}\n"); if (modelExecutionReport.CurrentLayerExecutionReport != null) { stringBuilder.Append("Warning: last layer was not completed. It will be logged, but it's information might be incomplete or erroneous.\n"); } stringBuilder.Append("\n"); List <LayerExecutionReport> allLayerReports = new List <LayerExecutionReport>(); allLayerReports.AddRange(modelExecutionReport.CompletedLayerExecutionReports); if (modelExecutionReport.CurrentLayerExecutionReport != null) { allLayerReports.Add(modelExecutionReport.CurrentLayerExecutionReport); } var layerExecutionViews = GenerateExecutionViews(allLayerReports, modelExecutionReport.CompletedLayerExecutionReports.Count); GenerateReportForViews(stringBuilder, layerExecutionViews, spreadSheetFormat, "", false); }
public void ModelExecutionStarted() { Assert.IsNull(CurrentModelExecutionReport); CurrentModelExecutionReport = new ModelExecutionReport(); }