ReportGeneratorLike

floodsim.model.report.ReportGeneratorLike
sealed trait ReportGeneratorLike

Trait defining the interface for report generation functionality. Implementations should provide methods to generate and save flood simulation reports.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes

Members list

Value members

Abstract methods

def saveReportToFile(grid: Grid[Cell], floodThreshold: Double, filePath: String): Boolean

Generates a flood simulation report and saves it to the specified file.

Generates a flood simulation report and saves it to the specified file.

Value parameters

filePath

the destination file path for the report

floodThreshold

the water height threshold used to determine flooding

grid

the grid containing cell data for the simulation

Attributes

Returns

true if the report was successfully saved, false otherwise