23.5.1 Priority Queue - Example
- Discrete event-driven simulation - classic application
- Structured around events (actions) that occur at some fixed time
- Often an action will spawn new events
- The following 2 files are the basis for an event-driven simulation
- Each event will be represented by an instance of Event
- The Event records the time, the key for comparison
- The lower time has higher priority
- A pure virtual method represents the action of an event
prev
|top
|next