|
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.DialerListWithLimits
public class DialerListWithLimits
Represents a dialer list imposing limits on the number of calls to dial.
Constructor Summary | |
---|---|
DialerListWithLimits(CallCenter cc,
int k,
DialerLimitParams... limits)
Constructs a new dialer list with limits for the call center cc, call type k, and limits limits. |
|
DialerListWithLimits(CallCenter cc,
RandomTypeCallFactory factory,
DialerLimitParams... limits)
Constructs a new dialer list with limits for the call center cc, the call factory factory which generates calls of random types, and the limits limits. |
Method Summary | |
---|---|
void |
clear()
Clears the contents of this dialer list. |
Contact |
newInstance()
Constructs and returns a new Contact object. |
Contact |
removeFirst(int[] contactTypes)
Removes and returns the first contact with one of the desired types from the dialer list. |
int |
size(int[] contactTypes)
Returns the number of contacts of desired types stored into this dialer list. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DialerListWithLimits(CallCenter cc, int k, DialerLimitParams... limits)
cc
- the call center model.k
- the call type identifier.limits
- the dialer's limits.public DialerListWithLimits(CallCenter cc, RandomTypeCallFactory factory, DialerLimitParams... limits)
cc
- the call center model.factory
- the random-type call factory.limits
- the dialer's limits.Method Detail |
---|
public void clear()
DialerList
clear
in interface DialerList
public Contact removeFirst(int[] contactTypes)
DialerList
NoSuchElementException
.
If contactTypes is null,
any contact type is allowed.
If contactTypes is non-null while
the dialer list does not support restrictions to
specific contact types, this throws an
UnsupportedOperationException
.
removeFirst
in interface DialerList
contactTypes
- the array of desired contact types.
public Contact newInstance()
ContactFactory
Contact
object.
If a contact cannot be instantiated, a
ContactInstantiationException
is thrown.
newInstance
in interface ContactFactory
public int size(int[] contactTypes)
DialerList
Integer.MAX_VALUE
.
If the dialer list does not allow restriction to
specific contact types, this method throws
an UnsupportedOperationException
.
size
in interface DialerList
contactTypes
- the array of desired contact types.
|
ContactCenters V. 0.9.9. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |