|
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.dialer.ThresholdDialerPolicy
public class ThresholdDialerPolicy
Represents a threshold-based dialing policy
selecting the number of calls to try based on the
number of free agents in certain groups.
Before trying to make calls, the policy
determines the total number of free
agents (t) in a test set of agent groups.
If the number of free agents is greater than
or equal to
st, the policy
counts the total number
(t) of free agents
in a target set of agent groups which may
differ from the test set. If
(t)≥sd,
the dialer tries to make
{
Math.round
(
κ(t))+ c - a, 0}
calls, where
κ∈
and c∈
are predefined
numbers. The constant a is the result of
Dialer.getNumActionEvents()
if Dialer.isUsingNumActionsEvents()
returns
true, or 0 otherwise.
Any parameter used by this policy can be changed at
any time during the simulation.
Constructor Summary | |
---|---|
ThresholdDialerPolicy(DialerList list,
AgentGroupSet testGroups,
AgentGroupSet targetGroups,
int minFreeTest,
double kappa,
int c)
Equivalent to int,int,double,int) ThresholdDialerPolicy (list, testGroups, targetGroups,
minFreeTest, 1, kappa, c). |
|
ThresholdDialerPolicy(DialerList list,
AgentGroupSet testGroups,
AgentGroupSet targetGroups,
int minFreeTest,
int minFreeTarget,
double kappa,
int c)
Constructs a new dialer's policy with dialer list list, test set testGroups, and target set targetGroups. |
Method Summary | |
---|---|
void |
dialerStarted(Dialer dialer)
This method is called when the dialer using this policy is started. |
void |
dialerStopped(Dialer dialer)
This method is called when the dialer using this policy is stopped. |
int |
getC()
Returns the current value of the additive constant c for this policy. |
DialerList |
getDialerList(Dialer dialer)
Returns the dialer list from which contacts have to be removed from, at the current simulation time. |
double |
getKappa()
Returns the current value of the multiplicative constant κ for this policy. |
int |
getMinFreeAgentsTarget()
Returns the minimal number of free agents sd in the target set to try outbound calls. |
int |
getMinFreeAgentsTest()
Returns the minimal number of free agents st in the test set to try outbound calls. |
int |
getNumDials(Dialer dialer)
Returns the number of calls the dialer should try to make simultaneously at the current simulation time. |
AgentGroupSet |
getTargetSet()
Returns the current target set of agent groups. |
AgentGroupSet |
getTestSet()
Returns the current test set of agent groups. |
void |
init(Dialer dialer)
Initializes this dialer's policy for a new simulation replication. |
void |
setC(int c)
Sets the additive constant c to c for this dialer's policy. |
void |
setDialerList(DialerList list)
Sets the currently used dialer list to list. |
void |
setKappa(double kappa)
Sets the multiplicative constant κ to kappa for this dialer policy. |
void |
setMinFreeAgentsTarget(int minFreeTarget)
Sets the minimal number of free agents in the target set to minFreeTarget. |
void |
setMinFreeAgentsTest(int minFreeTest)
Sets the minimal number of free agents in the test set to minFreeTest. |
void |
setTargetSet(AgentGroupSet targetGroups)
Sets the target set of agent groups to targetGroups. |
void |
setTestSet(AgentGroupSet testGroups)
Sets the test set of agent groups to testGroups. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ThresholdDialerPolicy(DialerList list, AgentGroupSet testGroups, AgentGroupSet targetGroups, int minFreeTest, int minFreeTarget, double kappa, int c)
list
- the dialer list being used.testGroups
- the test set of agent groups.targetGroups
- the target set of agent groups.minFreeTest
- the (inclusive) minimum number of free agents in the test set.minFreeTarget
- the (inclusive) minimum number of free agents in the target set.kappa
- the multiplicative constant.c
- the additive constant.
NullPointerException
- if list,
testGroups, or targetGroups
are null.
IllegalArgumentException
- if the free
agents threshold is negative.public ThresholdDialerPolicy(DialerList list, AgentGroupSet testGroups, AgentGroupSet targetGroups, int minFreeTest, double kappa, int c)
int,int,double,int) ThresholdDialerPolicy
(list, testGroups, targetGroups,
minFreeTest, 1, kappa, c).
Method Detail |
---|
public DialerList getDialerList(Dialer dialer)
DialerPolicy
DialerPolicy.getNumDials(Dialer)
is called.
getDialerList
in interface DialerPolicy
dialer
- the dialer for which the dialer list
is required.
public void setDialerList(DialerList list)
list
- the new dialer list.
NullPointerException
- if list is
null.public int getMinFreeAgentsTest()
public void setMinFreeAgentsTest(int minFreeTest)
minFreeTest
- the new minimal number of free agents in the test set.
IllegalArgumentException
- if minFreeTest
is negative.public int getMinFreeAgentsTarget()
public void setMinFreeAgentsTarget(int minFreeTarget)
minFreeTarget
- the new minimal number of free agents in the target set.
IllegalArgumentException
- if minFreeTarget
is negative.public double getKappa()
public void setKappa(double kappa)
kappa
- the new multiplicative constant.public int getC()
public void setC(int c)
c
- the new additive constant.public AgentGroupSet getTestSet()
public void setTestSet(AgentGroupSet testGroups)
testGroups
- the new test set of agent groups.
NullPointerException
- if testGroups is null.public AgentGroupSet getTargetSet()
public void setTargetSet(AgentGroupSet targetGroups)
targetGroups
- the new target set of agent groups.
NullPointerException
- if targetGroups is null.public void init(Dialer dialer)
DialerPolicy
init
in interface DialerPolicy
dialer
- the dialer which initialized
this policy.public void dialerStarted(Dialer dialer)
DialerPolicy
dialerStarted
in interface DialerPolicy
dialer
- the started dialer.public void dialerStopped(Dialer dialer)
DialerPolicy
dialerStopped
in interface DialerPolicy
dialer
- the stopped dialer.public int getNumDials(Dialer dialer)
DialerPolicy
If Dialer.isUsingNumActionsEvents()
returns true, this method
must take into account the current number of
action events while determining the additional
number of calls to dial.
In the simplest and most common cases, the method
subtracts the result of Dialer.getNumActionEvents()
to the number of calls to dial.
However, in some cases, it might be necessary
to use Dialer.getNumActionEvents(int)
to get the number of action events for
each contact type individually.
getNumDials
in interface DialerPolicy
dialer
- the triggered dialer.
public String toString()
toString
in class Object
|
ContactCenters V. 0.9.9. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |