// stats.h: statistics collection and display for the CSC 270 simulation example
// -- J. Clarke, March-June 1996

#include "porting.h"

class statsClass {
private:
	double profit; // dollars per litre
	double cost; // cost per day to operate one pump
	int TotalArrivals, customersServed, balkingCustomers;
	double TotalLitresSold, TotalLitresMissed, TotalWaitingTime,
		TotalServiceTime;

public:
	statsClass (double P, double C);
	void countArrival (void) {TotalArrivals += 1;};
	void accumSale (double litres);
	void accumBalk (double litres);
	void accumWaitingTime (double interval) {TotalWaitingTime += interval;};
	void accumServiceTime (double interval) {TotalServiceTime += interval;};
	void header (void);
	void snapshot (void);
};
