ContactCenters
V. 0.9.9.

umontreal.iro.lecuyer.contactcenters.ctmc
Class PriorityQueueSelectorWT

java.lang.Object
  extended by umontreal.iro.lecuyer.contactcenters.ctmc.PriorityQueueSelectorWT
All Implemented Interfaces:
WaitingQueueSelector

public class PriorityQueueSelectorWT
extends Object
implements WaitingQueueSelector


Constructor Summary
PriorityQueueSelectorWT(double[] ranks)
           
 
Method Summary
 double[] getRanks()
          Returns an array giving the rank associated with each waiting queue by this waiting queue selector.
 int selectWaitingQueue(CallCenterCTMC ctmc, int k, int tr)
          Selects a waiting queue for the free agent, and returns the index of the selected queue.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PriorityQueueSelectorWT

public PriorityQueueSelectorWT(double[] ranks)
Method Detail

selectWaitingQueue

public int selectWaitingQueue(CallCenterCTMC ctmc,
                              int k,
                              int tr)
Description copied from interface: WaitingQueueSelector
Selects a waiting queue for the free agent, and returns the index of the selected queue. If no waiting queue can be selected, this method returns a negative value.

Specified by:
selectWaitingQueue in interface WaitingQueueSelector
Parameters:
ctmc - the call center CTMC model.
tr - the current transition number.
Returns:
the selected waiting queue.

getRanks

public double[] getRanks()
Description copied from interface: WaitingQueueSelector
Returns an array giving the rank associated with each waiting queue by this waiting queue selector.

Specified by:
getRanks in interface WaitingQueueSelector
Returns:
the array of ranks.

ContactCenters
V. 0.9.9.

To submit a bug or ask questions, send an e-mail to Richard Simard.