next up previous contents
Next: The Dining Philosophers Up: Program structure Previous: Primitives and event

The event-based approach

With the event-based approach of writing a simulation program we first identify the events in the model. The behavior of an event is implemented by deriving it from the class event and overriding the function operator of this class. Consider the next problem.

A Eliens
Tue Oct 31 09:27:21 MET 1995