ContactCenters
V. 0.9.9.

umontreal.iro.lecuyer.contactcenters.ctmc
Class PriorityGroupSelector

java.lang.Object
  extended by umontreal.iro.lecuyer.contactcenters.ctmc.PriorityGroupSelector
All Implemented Interfaces:
AgentGroupSelector

public class PriorityGroupSelector
extends Object
implements AgentGroupSelector


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

Constructor Detail

PriorityGroupSelector

public PriorityGroupSelector(double[] ranks)
Method Detail

getRanks

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

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

selectAgentGroup

public int selectAgentGroup(CallCenterCTMC ctmc,
                            int tr)
Description copied from interface: AgentGroupSelector
Selects an agent group for the newly arrived contact, and returns the index of the selected agent group. If no agent group can be selected, this method returns a negative value.

Specified by:
selectAgentGroup in interface AgentGroupSelector
Parameters:
ctmc - the call center CTMC model.
tr - the current transition number.
Returns:
the selected agent group.

ContactCenters
V. 0.9.9.

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