|
ContactCenters V. 0.9.9. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectumontreal.iro.lecuyer.contactcenters.expdelay.HeadOfQueuePredictor
public class HeadOfQueuePredictor
Head of queue waiting time predictor. This predictor obtains a waiting time by taking the longest waiting time among the first queued contacts of the associated router. When waiting queues are first in first out (FIFO), this corresponds to the longest waiting time among all queued contacts. The waiting time of a queued contact is the time from which the contact entered the queue to the current time.
Constructor Summary | |
---|---|
HeadOfQueuePredictor()
|
Method Summary | |
---|---|
Router |
getRouter()
Returns a reference to the router associated with this predictor. |
double |
getWaitingTime(Contact contact)
Returns a prediction of the waiting time of contact contact waiting in any queue. |
double |
getWaitingTime(Contact contact,
WaitingQueue queue)
Returns a prediction of the waiting time for the given contact contact conditional on the contact joining the waiting queue queue. |
void |
init()
Resets any internal variable of this predictor. |
void |
setRouter(Router router)
Sets the router associated with this predictor to router. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HeadOfQueuePredictor()
Method Detail |
---|
public Router getRouter()
WaitingTimePredictor
WaitingTimePredictor.setRouter(Router)
method.
getRouter
in interface WaitingTimePredictor
public double getWaitingTime(Contact contact)
WaitingTimePredictor
Double.NaN
if it cannot make a prediction for the given contact.
getWaitingTime
in interface WaitingTimePredictor
contact
- the contact for which we need a prediction.
public double getWaitingTime(Contact contact, WaitingQueue queue)
WaitingTimePredictor
Double.NaN
if it cannot make a prediction for the given contact,
or the given waiting queue.
getWaitingTime
in interface WaitingTimePredictor
contact
- the contact for which a delay is predicted.queue
- the target waiting queue.
public void init()
WaitingTimePredictor
init
in interface WaitingTimePredictor
public void setRouter(Router router)
WaitingTimePredictor
setRouter
in interface WaitingTimePredictor
router
- the new router.
|
ContactCenters V. 0.9.9. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |