build Report
fun Model.buildReport(title: String = simulationName, block: ReportBuilder.() -> Unit = {}): ReportNode.Document(source)
Convenience extension on Model that builds a ReportNode.Document in a single call, automatically wiring the model's SimulationReporter and time-series responses into a complete results report.
Usage:
model.simulate()
val doc = model.buildReport("Drive-Through Pharmacy") {
// additional content (optional)
paragraph("Custom notes here.")
}
doc.showInBrowser()Content copied to clipboard
Return
the assembled ReportNode.Document
Parameters
title
document title used as the top-level heading; defaults to Model.simulationName
block
optional DSL block executed after simulationResults; use it to append custom sections or content