### ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ###
##                    308-522 -- Modelling and Simulation
##                                  Fall 2002
##                             --- ASSIGNMENT 1 ---
##
## SIM_pause.py
##
## last modified: 09/24/02
### ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ###

def pause(parentApp, model):
 ## MODIFIED: "generetorThread" replaced with "simulatorThread"
 if "simulatorThread" in dir(model):
   if model.simulatorThread.theThread != None and                             \
         model.simulatorThread.theThread.isAlive():
     model.simulatorThread.stop()
   else:
     pass

 else:
   pass

