HistoricalVariable

constructor(parent: ModelElement, data: DoubleArray, fileName: String, arrayOption: Boolean = true, stoppingOption: StoppingOption = StoppingOption.STOP, stopValue: Double = Double.MAX_VALUE, defaultValue: GetValueIfc? = null, name: String? = null)

Creates a file based on the data and then creates the historical variable. The file is created in the output directory of the model.

Parameters

data

an array of the data (instead of a path to a file)

fileName

the file name to use to represent the file


constructor(parent: ModelElement, pathToFile: Path, arrayOption: Boolean = true, stoppingOption: StoppingOption = StoppingOption.STOP, stopValue: Double = Double.MAX_VALUE, defaultValue: GetValueIfc? = null, name: String? = null)