Call the endSimulation()
method, to terminate the simulation programmatically. You should place this call where the positions are evaluated and you can check whether the arrival condition is true.
0
solved How can I stop whole application after a car arrives at destiny