|
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.ctmc.ListQueueSelector
public class ListQueueSelector
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 |
---|
public ListQueueSelector(int numQueues, int[] queueList)
queueList
- the list of waiting queried by
selectWaitingQueue(CallCenterCTMC,int,int)
.Method Detail |
---|
public int selectWaitingQueue(CallCenterCTMC ctmc, int k, int tr)
WaitingQueueSelector
selectWaitingQueue
in interface WaitingQueueSelector
ctmc
- the call center CTMC model.tr
- the current transition number.
public double[] getRanks()
WaitingQueueSelector
getRanks
in interface WaitingQueueSelector
|
ContactCenters V. 0.9.9. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |