endAfterCurrentReplication

Runs no further replications once the current one has finished.

Unlike endSimulation, this is safe to call from model code while a replication is executing, such as from an event or a process. The current replication runs to its end as usual, unless model code also ends it early with ModelElement.stopReplication, and its statistics are collected. The experiment then ends with the stopping condition met, which stoppedByCondition reports, instead of running the remaining replications.

Parameters

msg

optional message recorded as the reason for stopping