Skip to content

Commit 7f4faba

Browse files
committed
Scheduler no longer used directly.
#53
1 parent 39398e1 commit 7f4faba

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

docs/manual.adoc

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -316,20 +316,21 @@ The controller’s body creates and activates the other simulation entities and
316316
----
317317
public 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

0 commit comments

Comments
 (0)