HBCSim
Class PersCust

java.lang.Object
  |
  +--SimObs.GEntity
        |
        +--HBCSim.PersCust

public class PersCust
extends GEntity

Class to represent customers who arrive in person at the theatre booking office in the harassed booking clerk problem. These are represented as entities and therefore extend the GEntity class.


Field Summary
static HBCSim.PersCust.Arrive nextArrival
          The next arrival event
static Queue qIn
          Personal customers waiting for sevice
static Queue qOut
          Personal customers who have been served
static HBCSim.PersCust.EndServe serviceOver
          The next service event
 
Fields inherited from class SimObs.GEntity
avail, entNum, name, nextB, prevTime, tCell, util
 
Method Summary
static int getIAT()
          Returns with the mean inter arrival time.
static int getServiceTime()
          Computes and returns a random service time taken from a (negative) exponential distribution.
static int getST()
          Returns with the mean service time.
static void seedRND(long seed1, long seed2)
          Seeds both random number generators used by Sample for personal customers
static void setTimes(int iat, int servetime)
          Sets the mean inter-arrival and service times.
static void setUpQs()
          Instantiates queues pre and post service.
 
Methods inherited from class SimObs.GEntity
commit, doNextB, getAvail, getEntNum, getName, getTCell, getUtil, release, show
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

qIn

public static Queue qIn
Personal customers waiting for sevice

qOut

public static Queue qOut
Personal customers who have been served

nextArrival

public static HBCSim.PersCust.Arrive nextArrival
The next arrival event

serviceOver

public static HBCSim.PersCust.EndServe serviceOver
The next service event
Method Detail

seedRND

public static void seedRND(long seed1,
                           long seed2)
Seeds both random number generators used by Sample for personal customers

setTimes

public static void setTimes(int iat,
                            int servetime)
Sets the mean inter-arrival and service times. These may have been taken from an input screen.

getIAT

public static int getIAT()
Returns with the mean inter arrival time.

getST

public static int getST()
Returns with the mean service time.

getServiceTime

public static int getServiceTime()
Computes and returns a random service time taken from a (negative) exponential distribution.

setUpQs

public static void setUpQs()
Instantiates queues pre and post service.