|
ContactCenters V. 0.9.9. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface WaitingTimePredictor
Represents a heuristic that can predict the waiting
time of a contact depending on the system's state.
Such predictions can be used, e.g., for routing,
altering patience time, etc.
A predictor can have an associated router which is
used to obtain system state necessary for predictions.
It can also register listeners in order to
receive additional information.
The method getWaitingTime(Contact)
is used to get a prediction of the waiting time
for a given contact waiting in any queue.
The method getWaitingTime(Contact,WaitingQueue)
, on the
other hand, gives a prediction of the waiting time for a contact
waiting in a specific queue.
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. |
Method Detail |
---|
Router getRouter()
setRouter(Router)
method.
void setRouter(Router router)
router
- the new router.void init()
double getWaitingTime(Contact contact)
Double.NaN
if it cannot make a prediction for the given contact.
contact
- the contact for which we need a prediction.
double getWaitingTime(Contact contact, WaitingQueue queue)
Double.NaN
if it cannot make a prediction for the given contact,
or the given waiting queue.
contact
- the contact for which a delay is predicted.queue
- the target waiting queue.
|
ContactCenters V. 0.9.9. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |