// endsim.h: the EndOfSimulation class, representing the final event that // stops the simulation. class EndOfSimulation : public Event { public: // Constructor. EndOfSimulation (double time) : Event (time) { } // makeItHappen: end of simulation event routine. void makeItHappen() { sim->stats->snapshot (); sim->simulating = false; } };