|
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.xmlbind.NamedInfo
umontreal.iro.lecuyer.contactcenters.msk.model.AgentGroupManager
umontreal.iro.lecuyer.contactcenters.msk.model.AgentGroupManagerWithStaffing
public class AgentGroupManagerWithStaffing
Manages an agent group with a staffing vector giving the number of agents for each period. This manager stores the staffing vector and registers a period-change to update the staffing at the beginning of main periods.
Constructor Summary | |
---|---|
AgentGroupManagerWithStaffing(CallCenter cc,
AgentGroupParams par,
int i)
Calls the superclass' constructor, and extracts the staffing from par. |
|
AgentGroupManagerWithStaffing(CallCenter cc,
AgentGroupParams par,
int i,
int[] staffing)
Similar to the first constructor AgentGroupManagerWithStaffing(CallCenter,AgentGroupParams,int) ,
but uses the given staffing vector instead of the one
extracted from par. |
Method Summary | |
---|---|
double[] |
getAgentProbability()
Returns the per-period probabilities of presence for each agent in the group. |
double |
getAgentProbability(int mp)
Similar to getAgentProbability() ,
for a given main period mp. |
int[] |
getCurNumAgents()
Returns the number of agents in the managed group for the current simulation replication. |
int |
getCurNumAgents(int mp)
Similar to getCurNumAgents() , for
a given main period mp. |
int[] |
getStaffing()
Returns the raw staffing of the managed agent group. |
int |
getStaffing(int mp)
Returns element mp of the array that would be returned by AgentGroupManager.getStaffing() . |
void |
init()
Calls init on the managed agent group. |
void |
setAgentProbability(double[] prob)
Sets the per-period presence probabilities of agents to prob. |
void |
setAgentProbability(int mp,
double prob)
Sets the presence probability of agents to prob for main period mp. |
void |
setEffectiveStaffing(int[] staffing)
Sets the effective staffing for the managed agent group to staffing. |
void |
setEffectiveStaffing(int mp,
int ns)
Similar to setEffectiveStaffing(int[]) ,
for a single main period. |
void |
setStaffing(int[] staffing)
Sets the staffing vector to staffing. |
void |
setStaffing(int mp,
int staffing)
Sets the staffing for main period mp to staffing. |
Methods inherited from class umontreal.iro.lecuyer.contactcenters.msk.model.AgentGroupManager |
---|
connectToRouter, create, createAgentGroup, estimateParameters, getAgentGroup, getAgentsMult, getBusyCost, getBusyCost, getCallCenter, getDisconnectTimeGen, getEffectiveStaffing, getEffectiveStaffing, getIdleCost, getIdleCost, getMaxAgents, getMaxAgents, getMinAgents, getMinAgents, getPerUseCost, getPerUseCost, getProbDisconnect, getProbDisconnect, getProbDisconnectStream, getSchedule, getSkillCount, getWeight, getWeight, setAgentsMult, setProbDisconnectStream, setSchedule |
Methods inherited from class umontreal.iro.lecuyer.xmlbind.NamedInfo |
---|
getName, getProperties, getStringProperties |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AgentGroupManagerWithStaffing(CallCenter cc, AgentGroupParams par, int i) throws AgentGroupCreationException
AgentGroupCreationException
public AgentGroupManagerWithStaffing(CallCenter cc, AgentGroupParams par, int i, int[] staffing) throws AgentGroupCreationException
AgentGroupManagerWithStaffing(CallCenter,AgentGroupParams,int)
,
but uses the given staffing vector instead of the one
extracted from par.
AgentGroupCreationException
Method Detail |
---|
public int[] getStaffing()
AgentGroupManager
This method is mainly for internal use;
the AgentGroupManager.getEffectiveStaffing()
method should be used instead to take multipliers into
account.
The default behavior of this method is to return an array of 0's.
getStaffing
in class AgentGroupManager
public int getStaffing(int mp)
AgentGroupManager
AgentGroupManager.getStaffing()
.
As with AgentGroupManager.getStaffing()
, this method is for
internal use.
The method AgentGroupManager.getEffectiveStaffing(int)
should be used instead.
getStaffing
in class AgentGroupManager
mp
- the index of the tested main period.
public void setStaffing(int[] staffing)
staffing
- the new staffing vector.public void setStaffing(int mp, int staffing)
mp
- the index of the affected main period.staffing
- the new staffing.public void setEffectiveStaffing(int[] staffing)
setStaffing(int[])
, but it also
resets the value of the multiplier m*mi to 1.
This makes sure that AgentGroupManager.getEffectiveStaffing()
will return the same value as the staffing
passed to this method.
staffing
- the new effective staffing.public void setEffectiveStaffing(int mp, int ns)
setEffectiveStaffing(int[])
,
for a single main period.
mp
- the index of the affected main period.ns
- the new number of agents.public int[] getCurNumAgents()
AgentGroupManager.getEffectiveStaffing()
.
Otherwise, it returns the current (random)
number of agents for each main period.
public int getCurNumAgents(int mp)
getCurNumAgents()
, for
a given main period mp.
mp
- the index of the main period.
public double[] getAgentProbability()
public double getAgentProbability(int mp)
getAgentProbability()
,
for a given main period mp.
mp
- the index of the main period.
public void setAgentProbability(double[] prob)
prob
- the per-period presence probabilities.public void setAgentProbability(int mp, double prob)
public void init()
AgentGroupManager
init
in class AgentGroupManager
|
ContactCenters V. 0.9.9. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |