Supermarket simulation
======================

The simulation given here is heavily based on the gas simulation
(see notes below).
The main modifications on the gas simulation code are:
- cars become customers, pumps become cashiers;
- cars lined up in a unique queue; customer line up in one of
  several queues (one queue per cashier);
- other details related to the change above.

To compile and link type: 
make

To run simulation type:
supermarket

A sample output is given in file "sampleoutput".


------------- Previous README file for the gas simulation --------

Credit
------
The simulation example presented here is based on a program originally
developed in Turing by Prof. M. Molle for CSC 270H.

So far, the program has been translated to C++ (January 1996), to an
improved C++ version (March to June 1996), to Java (January 1998), and
back to C++ in a version intended to look like the Java version (January
1999). It is this last Java-like C++ version that is presented here.

Converting to a PC compiler
---------------------------
To get these programs to run on a PC, do at least these things:

1. Rename the .C files to be .cpp files, if that's what your compiler
   wants for C++ source.
2. In random.cc, comment out the line "#define RAND48".
3. Modify porting.h as required by the peculiarities of your compiler.
   Add a #include statement for porting.h in any source file that needs it.

The current version of the main program allows a command-line argument
giving the name of a data file, so that you can say "sim data" instead
of "sim < data". This should make things easier for DOS-Windows use.

                        -- J. Clarke, June 1996 and January 1999

------------------------------- end of previous README file ------------
