|
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.msk.model.ServiceTimesAgentManager
public class ServiceTimesAgentManager
Manages the construction of service time generators specific to each agent, as well as a default generator used when no generator is available for a given agent. This class associates a multiplier to each such service time which can be used to alter the mean service time. One object of this class can be constructed for each part of the service time, e.g., the talk time, the transfer time, etc.
Constructor Summary | |
---|---|
ServiceTimesAgentManager(CallCenter cc,
String name,
List<ServiceTimeParams> pars,
int k,
RandomStream sStream,
double sgenMultAllAgents,
int numAgents)
Constructs a new service times manager using call center parameters cc. |
Method Summary | |
---|---|
void |
generate(ServiceTimes st)
Uses the random variate generators attached with this service times manager to generate service times, and store the times in st. |
MultiPeriodGen |
getServiceTimeGen()
Returns the default service time generator used when no agent-agent-specific service time is available. |
MultiPeriodGen |
getServiceTimeGen(int j)
Returns the service time generator for agent agent i. |
MultiPeriodGen[] |
getServiceTimeGenAgents()
Returns an array containing the service time generators for each agent. |
double[] |
getServiceTimesGenAgentsMult()
Returns an array containing the multiplier for each service time generator specific to an agent. |
double |
getServiceTimesMult()
Returns the multiplier applied to the default service time generator. |
double |
getServiceTimesMult(int j)
Returns the service time multiplier specific to agent i. |
double |
getServiceTimesMultAllAgents()
Returns the service time multiplier applied to the default generator, as well as all generators specific to agents. |
void |
init(double mult)
Initializes this manager by setting the multipliers for the random variate generators. |
void |
setServiceTimeGen(int j,
MultiPeriodGen gen)
Sets the service time generator for agent i to gen. |
void |
setServiceTimeGen(MultiPeriodGen sgen)
Sets the default service time generator to sgen. |
void |
setServiceTimeGenAgents(MultiPeriodGen[] sgenAgents)
Sets the service time generators to sgenAgents for agents. |
void |
setServiceTimesGenAgentsMult(double[] sgenMultAgents)
Sets the service time multipliers for the agents using the array sgenMultAgents. |
void |
setServiceTimesMult(double sgenMult)
Sets the multiplier for the default service time generator to sgenMult. |
void |
setServiceTimesMult(int j,
double mult)
Sets the service time multiplier specific to agent i to mult. |
void |
setServiceTimesMultAllAgents(double sgenMultAllAgents)
Sets the global multiplier applied to each service time generator managed by this object to sgenMultAllAgents. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ServiceTimesAgentManager(CallCenter cc, String name, List<ServiceTimeParams> pars, int k, RandomStream sStream, double sgenMultAllAgents, int numAgents) throws CallFactoryCreationException
cc
- the call center model.name
- the name of the part of the
service time this object concerns, used
in error messages.pars
- the service time parameters.k
- the concerned call type.sStream
- the random stream used to generate
the service times.sgenMultAllAgents
- the multiplier
applied to all service time generators.numAgents
- the number of agents.
CallFactoryCreationException
- if an error occurs during the construction of the
service time manager.Method Detail |
---|
public MultiPeriodGen getServiceTimeGen()
public void setServiceTimeGen(MultiPeriodGen sgen)
sgen
- the new default service time generator.public MultiPeriodGen getServiceTimeGen(int j)
getServiceTimeGen()
.
j
- the tested agent.
public MultiPeriodGen[] getServiceTimeGenAgents()
public void setServiceTimeGenAgents(MultiPeriodGen[] sgenAgents)
sgenAgents
- the new array of service time generators.public void setServiceTimeGen(int j, MultiPeriodGen gen)
j
- the index of the agent.gen
- the new generator.public double[] getServiceTimesGenAgentsMult()
public void setServiceTimesGenAgentsMult(double[] sgenMultAgents)
sgenMultAgents
- the array giving the multipliers.public double getServiceTimesMult()
public void setServiceTimesMult(double sgenMult)
sgenMult
- the multiplier for the default service time
multiplier.public double getServiceTimesMult(int j)
j
- the tested agent.
public void setServiceTimesMult(int j, double mult)
j
- the agent identifier.mult
- the new multiplier.public double getServiceTimesMultAllAgents()
public void setServiceTimesMultAllAgents(double sgenMultAllAgents)
sgenMultAllAgents
- the new multiplier.public void init(double mult)
getServiceTimesMultAllAgents()
, and
the generator-specific multiplier.
The value of mult corresponds to the
global service time multiplier applying to all call types.
mult
- the global multiplier.public void generate(ServiceTimes st)
st
- the object holding service times.
|
ContactCenters V. 0.9.9. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |