Counter
constructor(parent: ModelElement, name: String? = null, initialValue: Double = 0.0, countLimit: Double = Double.POSITIVE_INFINITY, stopOnLimit: Boolean = false)(source)
Parameters
parent
The ModelElement that owns this counter, typically a Model.
name
An optional descriptive name for the counter, used in logs and reports.
initial Value
The value the counter starts with at the beginning of every replication. Defaults to 0.0.
count Limit
The threshold at which CountActionIfc actions are triggered. Defaults to Double.POSITIVE_INFINITY.
stop On Limit
If true, a StoppingAction is automatically attached to this counter, which will terminate the simulation replication once the countLimit is reached. Note: This only applies if countLimit is finite.