|
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.ServiceTimesManager
public class ServiceTimesManager
Manages the construction of service time generators specific to each agent, to each agent group also as well as a default generator used when no generator is available for a given agent or agent group. 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 | |
---|---|
ServiceTimesManager(CallCenter cc,
String name,
List<ServiceTimeParams> pars,
int k,
RandomStream sStream,
double sgenMultAllGroups,
int numGroups)
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-group-specific service time is available. |
MultiPeriodGen |
getServiceTimeGen(int i)
Returns the service time generator for agent group i. |
MultiPeriodGen[] |
getServiceTimeGenGroups()
Returns an array containing the service time generators for each agent group. |
double[] |
getServiceTimesGenGroupsMult()
Returns an array containing the multiplier for each service time generator specific to an agent group. |
double |
getServiceTimesMult()
Returns the multiplier applied to the default service time generator. |
double |
getServiceTimesMult(int i)
Returns the service time multiplier specific to agent group i. |
double |
getServiceTimesMultAllGroups()
Returns the service time multiplier applied to the default generator, as well as all generators specific to agent groups. |
void |
init(double mult)
Initializes this manager by setting the multipliers for the random variate generators. |
void |
setServiceTimeGen(int i,
MultiPeriodGen gen)
Sets the service time generator for agent group i to gen. |
void |
setServiceTimeGen(MultiPeriodGen sgen)
Sets the default service time generator to sgen. |
void |
setServiceTimeGenGroups(MultiPeriodGen[] sgenGroups)
Sets the service time generators to sgenGroups for agent groups. |
void |
setServiceTimesGenGroupsMult(double[] sgenMultGroups)
Sets the service time multipliers for the agent groups using the array sgenMultGroups. |
void |
setServiceTimesMult(double sgenMult)
Sets the multiplier for the default service time generator to sgenMult. |
void |
setServiceTimesMult(int i,
double mult)
Sets the service time multiplier specific to agent group i to mult. |
void |
setServiceTimesMultAllGroups(double sgenMultAllGroups)
Sets the global multiplier applied to each service time generator managed by this object to sgenMultAllGroups. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ServiceTimesManager(CallCenter cc, String name, List<ServiceTimeParams> pars, int k, RandomStream sStream, double sgenMultAllGroups, int numGroups) 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.sgenMultAllGroups
- the multiplier
applied to all service time generators.numGroups
- the number of agent groups.
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 i)
getServiceTimeGen()
.
i
- the tested agent group.
public MultiPeriodGen[] getServiceTimeGenGroups()
public void setServiceTimeGenGroups(MultiPeriodGen[] sgenGroups)
sgenGroups
- the new array of service time generators.public void setServiceTimeGen(int i, MultiPeriodGen gen)
i
- the index of the agent group.gen
- the new generator.public double[] getServiceTimesGenGroupsMult()
public void setServiceTimesGenGroupsMult(double[] sgenMultGroups)
sgenMultGroups
- 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 i)
i
- the tested agent group.
public void setServiceTimesMult(int i, double mult)
i
- the agent group identifier.mult
- the new multiplier.public double getServiceTimesMultAllGroups()
public void setServiceTimesMultAllGroups(double sgenMultAllGroups)
sgenMultAllGroups
- the new multiplier.public void init(double mult)
getServiceTimesMultAllGroups()
, 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 |