|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--SimObs.GEntity | +--HBCSim.PersCust
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 |
public static Queue qIn
public static Queue qOut
public static HBCSim.PersCust.Arrive nextArrival
public static HBCSim.PersCust.EndServe serviceOver
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 |