acsicuib / YAFS

Yet Another Fog Simulator (YAFS)
MIT License
101 stars 73 forks source link

Customized termination of simulation #25

Closed Ktechkun closed 4 years ago

Ktechkun commented 5 years ago

How to terminate simulation using any custom measure other than time. For example if i wanted to stop simulation after N number of app successfully terminated.

wisaaco commented 4 years ago

In class Core.py, you can set the boolean variable stop at True. sim.stop = True All internal simulator processes will stop when they are activated again.

Ktechkun commented 4 years ago

So, like in file like SimpleSelection i can set sim.stop = 0. Thanks