/* statistics.h
 */

#ifndef STATISTICS_H
#define STATISTICS_H

#include <iostream.h>

class Person;

class Statistics {

public:

    void report_arrival( Person *pers );
    void report_impatient_departure(Person *pers);
    void report_impatient() { num_impatients++;}
    void periodic_report();
    void final_report();

    Statistics() {		// constructor
	num_trips = 0;
	total_trip_time = 0;
	num_impatient_departures = 0;
	num_impatients = 0;
    }

private:

    int   num_trips;		// number of reported trips
    float total_trip_time;	// sum of all trip times
    int   num_impatients;	// number of impatient people
    int   num_impatient_departures; // number of impatient people who leave
};

#endif
