Introduction to OOP Chapter 21: Software Frameworks : next previous audio real text

A Generalized Event Driven Simulation Framework

A generalized discrete event-driven simulation can be formed based around the class Event:
class Event {
public:
	Event (unsigned int t) : time(t) { }

	const unsigned int time;
	virtual void processEvent () = 0;
};

class eventComparison {
public:
	bool operator () (event * left, event * right) 
		{ return left->time > right->time; }
};
An event is an action that will take place at a specific time.
Intro OOP, Chapter 21, Slide 16

Discrete event driven simulations were the type of application that helped drive the design of the first object-oriented programming language, Simula. (Early 1960's).