HBCSim
Class PhoneEnq

HBCSim.PhoneEnq

public class PhoneEnq

Class to represent customers who phone in to 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.PhoneEnq.EndTalk callOver
          The next service event
static HBCSim.PhoneEnq.Call nextCall
          The next arrival event
static HBCSim.Queue qIn
          Personal customers waiting for sevice
static HBCSim.Queue qOut
          Personal customers who have been served
 
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.
 

Field Detail

qIn

public static HBCSim.Queue qIn
Personal customers waiting for sevice

qOut

public static HBCSim.Queue qOut
Personal customers who have been served

nextCall

public static HBCSim.PhoneEnq.Call nextCall
The next arrival event

callOver

public static HBCSim.PhoneEnq.EndTalk callOver
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.