umontreal.iro.lecuyer.contactcenters.expdelay
Class MeanNLastWaitingTimePerQueuePredictor
java.lang.Object
umontreal.iro.lecuyer.contactcenters.expdelay.LastWaitingTimePredictor
umontreal.iro.lecuyer.contactcenters.expdelay.MeanNLastWaitingTimePredictor
umontreal.iro.lecuyer.contactcenters.expdelay.MeanNLastWaitingTimePerQueuePredictor
- All Implemented Interfaces:
- WaitingTimePredictor
public class MeanNLastWaitingTimePerQueuePredictor
- extends MeanNLastWaitingTimePredictor
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MeanNLastWaitingTimePerQueuePredictor
public MeanNLastWaitingTimePerQueuePredictor()
setWindowSizeVQ
public void setWindowSizeVQ(int[] taille)
setWaitingTimeDefaultVQ
public void setWaitingTimeDefaultVQ(double[] attente)
getWaitingTime
public double getWaitingTime(Contact contact,
WaitingQueue queue)
- Description copied from interface:
WaitingTimePredictor
- Returns a prediction of the waiting time
for the given contact
contact conditional on the contact
joining the waiting
queue queue.
This method returns
Double.NaN
if it cannot make a prediction for the given contact,
or the given waiting queue.
- Specified by:
getWaitingTime
in interface WaitingTimePredictor
- Overrides:
getWaitingTime
in class MeanNLastWaitingTimePredictor
- Parameters:
contact
- the contact for which a delay is predicted.queue
- the target waiting queue.
- Returns:
- the predicted delay.
updateWaitingTime
public double updateWaitingTime(DequeueEvent ev)
- Overrides:
updateWaitingTime
in class MeanNLastWaitingTimePredictor
init
public void init(Router router)
init
public void init()
- Description copied from interface:
WaitingTimePredictor
- Resets any internal variable of this predictor.
- Specified by:
init
in interface WaitingTimePredictor
- Overrides:
init
in class MeanNLastWaitingTimePredictor
setRouter
public void setRouter(Router newRouter)
- Description copied from interface:
WaitingTimePredictor
- Sets the router associated with this predictor to
router.
When router is non-null, this
method can also register any listener required
to make the predictions.
If the router associated with a predictor is changed,
the predictor should unregister any listener associated
with the previous router.
- Specified by:
setRouter
in interface WaitingTimePredictor
- Overrides:
setRouter
in class MeanNLastWaitingTimePredictor
- Parameters:
newRouter
- the new router.
dequeued
protected void dequeued(DequeueEvent ev)
- Overrides:
dequeued
in class MeanNLastWaitingTimePredictor
To submit a bug or ask questions, send an e-mail to
Richard Simard.