[Next] [Previous] [Up] [Top] [Contents]

Section 1 - Clauses, Types and Rules

1.11 Running a Simulation


To fire these rules we must start a simulation. To see what is happening we will also open a transcript to tell us which rules are firing.

From the Workbench: intro1-1 browser (remember it?) select open rule firing transcript from the Transcripts menu, then click on the screen to place the window. To start the simulation select start simulation from the Simulate menu. When the save data? dialogue window appears select the no button.

The Rule Firing Transcript should say something like this:

Starting simulation at 4:30:14 pm on 9 September 1996

universe is firing the initial eternity rule: producer parameters (settable model parameters)

universe is firing the initial eternity rule: create producers (create objects) 10 times

universe is firing the initial eternity rule: costs (randomised attributes) 10 times

Simulation finished at 4:30:16 pm on 9 September 1996

(When it has finished (it will only take a few seconds) the simulation debugger window will appear.) This transcript shows the rules that fired and the order in which SDML fired them. Notice that it also tells you that two of the rules succeeded with 10 different sets of bindings and hence fired them 10 times each. We are now in the position to write some rules ourselves. First though we are going to define a new type for consumers and some new user-defined clause definitions.


An introduction to SDML - Bruce Edmonds - 13 JUL 99
[Next] [Previous] [Up] [Top] [Contents]

Generated with CERN WebMaker