preamble

normally mode is undefined

processes include CUSTOMER, GENERATOR

resources include TAXI.RESOURCE

temporary entities

    every TAXI.ENTITY
        has a STATUS

        define STATUS as an integer variable
            define .IDLE    to mean 0
            define .BUSY    to mean 1

dynamic graphic entities include TAXI.ENTITY

define .NUM.TAXIS to mean 4

define TAXI as a 1-dim pointer array

define REVENUE      as a 1-dim double array
define CLOCK.TIME   as a double variable

display variables include REVENUE, CLOCK.TIME

define POINT as a 2-dim real array

define STREAM,
       CUSTOMER.MARKTYPE,
       DESTINATION.MARKTYPE,
       MARKCOLOR,
       MARKSIZE,
       V.XLO,
       V.XHI,
       V.YLO,
       V.YHI,
       LO,
       HI,
       DELTA as integer variables

define WAITING.TIME,
       XLO,
       XHI,
       YLO,
       YHI,
       TAXI.SPEED,
       MEAN.INTERARRIVAL.TIME,
       LOADING.UNLOADING.TIME,
       FLAT.FEE as double variables

define DISTANCE.FROM.TAXI as a double function

tally WAITING.TIME.HISTOGRAM (LO to HI by DELTA)
as the dynamic histogram of WAITING.TIME

end
