|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
HBCSim.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 |
public static HBCSim.Queue qIn
public static HBCSim.Queue qOut
public static HBCSim.PhoneEnq.Call nextCall
public static HBCSim.PhoneEnq.EndTalk callOver
Method Detail |
public static void seedRND(long seed1, long seed2)
public static void setTimes(int iat, int servetime)
public static int getIAT()
public static int getST()
public static int getServiceTime()
public static void setUpQs()
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |