next up previous contents
Next: The entity philosopher Up: Program structure Previous: The event class

The process-oriented approach

With the process-oriented approach the components of the model consist of entities, which represent the existence of some object in the system such as a philosopher. An entity receives a user-defined phase that determines the behavior of the entity.

We first identify the entities (or the types) in the model. The events are represented as methods of an entity. The function operator calls these events based on the phase the entity is in.

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