|
ContactCenters V. 0.9.9. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.AbstractCollection<E>
java.util.AbstractSet<WaitingQueue>
umontreal.iro.lecuyer.contactcenters.queue.WaitingQueueSet
public class WaitingQueueSet
Represents a group of waiting queues for which it is possible to get the total size. This can be used when the total number of contacts in a subset of the contact center's waiting queues is needed for statistical collecting or for capacity limitation.
Constructor Summary | |
---|---|
WaitingQueueSet()
|
Method Summary | |
---|---|
boolean |
add(WaitingQueue queue)
Adds the waiting queue queue to this set of waiting queues. |
void |
clear()
Removes all the waiting queues contained in this set of waiting queues. |
WaitingQueueSet |
clone()
Constructs and returns a copy of this set of waiting queues. |
boolean |
contains(Object o)
|
String |
getName()
Returns the name associated with this object. |
Accumulate |
getStatQueueSize()
Returns the statistical collector for the size of the queues in the set. |
void |
init()
Initializes all the waiting queues contained in this set. |
void |
initStat()
Initializes the statistical collector for the size of the queues in this set. |
boolean |
isEmpty()
|
boolean |
isStatCollecting()
Determines if this set of waiting queues is collecting statistics about the total size of the queues. |
Iterator<WaitingQueue> |
iterator()
|
int |
queueSize()
Returns the total size of the queues currently in this group of waiting queues. |
boolean |
remove(Object queue)
Removes the waiting queue queue from this set of waiting queues. |
void |
setName(String n)
Sets the name of this object to name. |
void |
setStatCollecting(boolean b)
Sets the state of statistical collecting to b. |
void |
setStatCollecting(Simulator sim)
Enables statistical collecting, but associates the given simulator to the internal accumulate. |
int |
size()
|
String |
toString()
|
Methods inherited from class java.util.AbstractSet |
---|
equals, hashCode, removeAll |
Methods inherited from class java.util.AbstractCollection |
---|
addAll, containsAll, retainAll, toArray, toArray |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.Set |
---|
addAll, containsAll, retainAll, toArray, toArray |
Constructor Detail |
---|
public WaitingQueueSet()
Method Detail |
---|
public String getName()
Named
getName
in interface Named
public void setName(String n)
Named
UnsupportedOperationException
if the name is read-only.
setName
in interface Named
n
- the new name of the object.public int queueSize()
public boolean add(WaitingQueue queue)
add
in interface Collection<WaitingQueue>
add
in interface Set<WaitingQueue>
add
in class AbstractCollection<WaitingQueue>
queue
- the waiting queue being added.
NullPointerException
- if queue is null.public int size()
size
in interface Collection<WaitingQueue>
size
in interface Set<WaitingQueue>
size
in class AbstractCollection<WaitingQueue>
public boolean isEmpty()
isEmpty
in interface Collection<WaitingQueue>
isEmpty
in interface Set<WaitingQueue>
isEmpty
in class AbstractCollection<WaitingQueue>
public boolean contains(Object o)
contains
in interface Collection<WaitingQueue>
contains
in interface Set<WaitingQueue>
contains
in class AbstractCollection<WaitingQueue>
public Iterator<WaitingQueue> iterator()
iterator
in interface Iterable<WaitingQueue>
iterator
in interface Collection<WaitingQueue>
iterator
in interface Set<WaitingQueue>
iterator
in class AbstractCollection<WaitingQueue>
public boolean remove(Object queue)
remove
in interface Collection<WaitingQueue>
remove
in interface Set<WaitingQueue>
remove
in class AbstractCollection<WaitingQueue>
queue
- the waiting queue being removed.
NullPointerException
- if queue is null.public void clear()
clear
in interface Collection<WaitingQueue>
clear
in interface Set<WaitingQueue>
clear
in class AbstractCollection<WaitingQueue>
public void init()
init
in interface Initializable
public void initStat()
IllegalStateException
.
IllegalStateException
- if statistical collecting is turned OFF.public boolean isStatCollecting()
public void setStatCollecting(boolean b)
b
- the new state of statistical collecting.public void setStatCollecting(Simulator sim)
sim
- the simulator associated to
the internal accumulate.public Accumulate getStatQueueSize()
public String toString()
toString
in class AbstractCollection<WaitingQueue>
public WaitingQueueSet clone()
clone
in class Object
|
ContactCenters V. 0.9.9. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |