|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--SimObs.GEntity
|
+--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 Queue |
qIn
Personal customers waiting for sevice |
static Queue |
qOut
Personal customers who have been served |
| 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 |
public static Queue qIn
public static 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 | ||||||||