public static class FluidRatioRouting.FluidRatioRouter extends AgentsPrefRouter implements ExitedContactListener
bestAgent, bestGroup, bestQueue, bestQueuedContact, ranksGT, ranksTG, weightsGT, weightsTG
BLOCKTYPE_CANTQUEUE, BLOCKTYPE_NOLINE, BLOCKTYPE_QUEUEFULL, DEQUEUETYPE_BEGINSERVICE, DEQUEUETYPE_FANTOM, DEQUEUETYPE_NOAGENT, DEQUEUETYPE_TRANSFER, dqTypeRet
Constructor and Description |
---|
FluidRatioRouting.FluidRatioRouter(CallCenter cc,
double[][] ranksTG,
double[][] ranksGT,
double[][] weightsTG,
double[][] weightsGT,
double[] callGroupRatio)
Initialize the router.
|
Modifier and Type | Method and Description |
---|---|
protected void |
beginService(EndServiceEvent ev)
Update ratio and modify ranksTG and ranksGT matrix if necessary.
|
void |
blocked(Router router,
Contact contact,
int bType) |
void |
dequeued(Router router,
DequeueEvent ev) |
double[][] |
getCountCallGroup()
Get the number of calls of each type served by each group.
|
double[] |
getTotalCountCall()
Get the total number of calls served for each call type.
|
void |
served(Router router,
EndServiceEvent ev) |
canServe, checkWaitingQueues, getAgentSelectionScore, getContactSelectionScore, getDescription, getGroupToTypeMap, getRankForAgentSelection, getRankForContactSelection, getRankGT, getRanksGT, getRanksTG, getRankTG, getScoreForAgentSelection, getScoreForContactSelection, getStreamAgentSelection, getStreamContactSelection, getTypeToGroupMap, getWaitingQueueType, getWeightGT, getWeightsGT, getWeightsTG, getWeightTG, needsDetailedAgentGroup, selectAgent, selectAgent, selectContact, selectWaitingQueue, selectWaitingQueue, setAgentSelectionScore, setContactSelectionScore, setRanksGT, setRanksTG, setStreamAgentSelection, setStreamContactSelection, setWeightsGT, setWeightsTG, toLongString
addExitedContactListener, agentReroutingEventsIterator, checkFreeAgents, clearExitedContactListeners, contactReroutingEventsIterator, dequeued, endContact, endService, enqueued, exitBlocked, exitDequeued, exitServed, formatAgentGroups, formatWaitingQueues, getAgentGroup, getAgentGroupListener, getAgentGroups, getAgentReroutingEvents, getContactFactory, getContactReroutingEvents, getCurrentQueueSize, getDialers, getExitedContactListeners, getNeededWaitingQueueComparator, getNeededWaitingQueueStructure, getNumAgentGroups, getNumContactTypes, getNumWaitingQueues, getReroutingDelay, getReroutingDelay, getTotalQueueCapacity, getWaitingQueue, getWaitingQueueListener, getWaitingQueues, init, isKeepingReroutingEvents, mustClearWaitingQueue, newContact, notifyBlocked, notifyDequeued, notifyServed, removeExitedContactListener, restore, save, selectAgent, selectContact, selectWaitingQueue, setAgentGroup, setClearWaitingQueue, setClearWaitingQueues, setContactFactory, setKeepingReroutingEvents, setTotalQueueCapacity, setWaitingQueue, startDialers, toString
public FluidRatioRouting.FluidRatioRouter(CallCenter cc, double[][] ranksTG, double[][] ranksGT, double[][] weightsTG, double[][] weightsGT, double[] callGroupRatio)
cc
- the call center parameterranksTG
- ranksGT
- weightsTG
- weightsGT
- callGroupRatio
- the ratio threshold for each call type with each agent group.protected void beginService(EndServiceEvent ev)
beginService
in class Router
ev
- public void blocked(Router router, Contact contact, int bType)
blocked
in interface ExitedContactListener
public void dequeued(Router router, DequeueEvent ev)
dequeued
in interface ExitedContactListener
public void served(Router router, EndServiceEvent ev)
served
in interface ExitedContactListener
public double[][] getCountCallGroup()
public double[] getTotalCountCall()