1 """
2 This file provides a global Simulation object and the global simulation methods
3 used by SimPy up to version 1.9.1.
4 """
5
6
7
8 global sim
9 sim = None
10
13
16
20
22 """Application function to start stepping through simulation for waituntil construct."""
23 sim._startWUStepping()
24
26 """Application function to stop stepping through simulation."""
27 sim._stopWUStepping()
28
29 -def activate(obj, process, at = 'undefined', delay = 'undefined', prior = False):
30 """Application function to activate passive process."""
31 sim.activate(obj, process, at, delay, prior)
32
33 -def reactivate(obj, at = 'undefined', delay = 'undefined', prior = False):
34 """Application function to reactivate a process which is active,
35 suspended or passive."""
36 sim.reactivate(obj, at, delay, prior)
37
40