|
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.ConstantDialerPolicy
public class ConstantDialerPolicy
Represents a dialer's policy which always tries to make the same number of calls on each trial.
Constructor Summary | |
---|---|
ConstantDialerPolicy(DialerList list,
int n)
Constructs a new dialer's policy with dialer list list, and n calls to make on each trial. |
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. |
DialerList |
getDialerList(Dialer dialer)
Returns the dialer list from which contacts have to be removed from, at the current simulation time. |
int |
getNumDials(Dialer dialer)
Returns the number of calls the dialer should try to make simultaneously at the current simulation time. |
void |
init(Dialer dialer)
Initializes this dialer's policy for a new simulation replication. |
void |
setDialerList(DialerList list)
Sets the dialer list to list. |
void |
setNumDials(int n)
Sets the number of dialed contacts to n. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ConstantDialerPolicy(DialerList list, int n)
list
- the dialer list to extract calls from.n
- the number of calls to make on each occasion.
NullPointerException
- if list
is null.
IllegalArgumentException
- if n
is negative.Method Detail |
---|
public void init(Dialer dialer)
DialerPolicy
init
in interface DialerPolicy
dialer
- the dialer which initialized
this policy.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 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 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 void setNumDials(int n)
n
- the number of calls to make upon each trial.
IllegalArgumentException
- if n
is negative.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 |