// endsimEvent.h: the EndOfSimulationEvent class, representing the final 
// event that stops the simulation.

#ifndef _ENDSIM_H
#define _ENDSIM_H

#include "supermarket.h"

class EndOfSimulationEvent : public Event {

public:

   // Constructor.
   EndOfSimulationEvent (double time) : Event (time) { }

   // makeItHappen: end of simulation event routine.
   void makeItHappen() { sim->statSnapshot(); sim->stop(); }
};

#endif
