18 | | - the main loop of the event-discrete simulator: |
19 | | START: |
20 | | -initialize ending condition to false |
21 | | -initialize system state variables |
22 | | -initialize clock (usually starts at simulation time zero) |
23 | | -schedule an initial event (put some initial event into the event queue) |
24 | | DO LOOP or WHILE LOOP: |
25 | | While (ending condition is false) do |
26 | | -set clock to next event time |
27 | | -process next event and remove from the event-queue |
28 | | -update statistics |
29 | | END: |
30 | | -generate statistics |
| 18 | - the main loop of the event-discrete simulator:[[BR]] |
| 19 | |
| 20 | START:[[BR]] |
| 21 | |
| 22 | -initialize ending condition to false[[BR]] |
| 23 | |
| 24 | -initialize system state variables[[BR]] |
| 25 | |
| 26 | -initialize clock (usually starts at simulation time zero)[[BR]] |
| 27 | |
| 28 | -schedule an initial event (put some initial event into the event queue)[[BR]] |
| 29 | |
| 30 | DO LOOP or WHILE LOOP:[[BR]] |
| 31 | |
| 32 | While (ending condition is false) do[[BR]] |
| 33 | |
| 34 | -set clock to next event time[[BR]] |
| 35 | |
| 36 | -process next event and remove from the event-queue[[BR]] |
| 37 | |
| 38 | -update statistics[[BR]] |
| 39 | |
| 40 | END:[[BR]] |
| 41 | |
| 42 | -generate statistics[[BR]] |
| 43 | |