ContactCenters
V. 0.9.9.

umontreal.iro.lecuyer.contactcenters.ctmc
Class ListQueueSelector

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

public class ListQueueSelector
extends Object
implements WaitingQueueSelector

Represents a waiting queue selector using static lists. When an agent becomes free, the router selects the first waiting queue, among the user-specified queues k0, k1,..., containing at least one call. If such a queue exists, the first queued call is removed, and assigned to the free agent. Otherwise, the agent stays free until a new call arrives.


Constructor Summary
ListQueueSelector(int numQueues, int[] queueList)
          Constructs a new list-based waiting queue selector using the given list queueList.
 
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

ListQueueSelector

public ListQueueSelector(int numQueues,
                         int[] queueList)
Constructs a new list-based waiting queue selector using the given list queueList.

Parameters:
queueList - the list of waiting queried by selectWaitingQueue(CallCenterCTMC,int,int).
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.