File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed
Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -316,20 +316,21 @@ The controller’s body creates and activates the other simulation entities and
316316----
317317public void run ()
318318{
319- sc = new Scheduler();
320-
321319 /*
322320 * create and activate any other simulation entities before
323321 * moving on to the next step ...
324322 */
325323
326- // we must create a scheduler for the simulation to run the simulation
327-
328- sc.resume();
324+ // we must create a scheduler for the simulation to run the simulation.
325+ // starting the simulation does this for us.
326+
327+ Simulation.start();
328+
329+ // do whatever we need to in order to suspend this thread/process.
329330
330331 // print results
331332
332- sc.Suspend (); // suspend scheduler
333+ Simulation.stop (); // suspends the scheduler
333334
334335 // suspend simulation entities
335336
You can’t perform that action at this time.
0 commit comments