Examples
The examples should show how to use DiscreteEvents
and how to employ and combine different approaches to modeling and simulation.
Introductory Examples
- Table tennis: a state-based model,
- Single server: activity-based model,
M/M/c Queue
The following examples illustrate different implementations of a simple M/M/2 queue:
- M/M/c activity-based,
- M/M/c process-based,
- M/M/c state-based, a finite state machine actor,
- M/M/c actor, with
YAActL
actors,
The following examples simulate server failures:
Multi-Threading (Experimental)
- An assembly line of several sections running on different threads
Other Examples:
- House heating: a hybrid system combining events, continuous sampling and processes,
- Post office: a process-based simulation of a post-office,
- Goldratt's dice game: parallel simulations of assembly lines.
Working with the examples
If you would like to play with the examples, you can look at: