|
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.ContactCenter
public class ContactCenter
Defines utility methods for contact center simulation. This class provides facilities to initialize the contact center's objects, and to perform some actions on a group of objects.
Method Summary | |
---|---|
static void |
clearWaitingQueues(Iterable<? extends WaitingQueue> waitingQueues,
int dqType)
Clears all waiting queues enumerated by the iterable waitingQueues with dequeue type dqType. |
static void |
clearWaitingQueues(WaitingQueue[] waitingQueues,
int dqType)
Clears all waiting queues in waitingQueues with dequeue type dqType. |
static void |
clearWaitingQueues(WaitingQueueSet[] waitingQueues,
int dqType)
Clears all waiting queues in waitingQueues with dequeue type dqType. |
static void |
initElements(Initializable[] el)
Initializes all elements in el. |
static void |
initElements(Iterable<?> el)
Initializes all elements enumerated by the iterable el. |
static void |
initElements(ListOfStatProbes<?>[] el)
Initializes all elements in el. |
static void |
initElements(MatrixOfStatProbes<?>[] el)
Initializes all elements in el. |
static void |
initElements(MeasureMatrix[] el)
Initializes all elements in el. |
static void |
initElements(Object[] el)
Equivalent to initElements(Iterable) for
an array of objects. |
static void |
initElements(StatProbe[] el)
Initializes all elements in el. |
static void |
startPeriodChangeEvents(Iterable<? extends PeriodChangeEvent> pce)
For each period-change event enumerated by the iterable pce, calls the PeriodChangeEvent.start() method. |
static void |
startPeriodChangeEvents(PeriodChangeEvent[] pce)
For each period-change event in the array pce, calls the PeriodChangeEvent.start() method. |
static void |
stopPeriodChangeEvents(Iterable<? extends PeriodChangeEvent> pce)
For each period-change event enumerated by the iterable pce, calls the PeriodChangeEvent.stop() method. |
static void |
stopPeriodChangeEvents(PeriodChangeEvent[] pce)
For each period-change event in the array pce, calls the PeriodChangeEvent.stop() method. |
static void |
toggleElements(Iterable<? extends ToggleElement> el,
boolean enabled)
Toggles the elements to the status enabled. |
static void |
toggleElements(ToggleElement[] el,
boolean enabled)
Toggles the elements to the status enabled. |
static String |
toShortString(Named named)
Returns a short string representation of the named object named. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static void initElements(Iterable<?> el)
Initializable
, MeasureMatrix
,
ListOfStatProbes
, and MatrixOfStatProbes
.
For other elements instance of Iterable
, this
method is called recursively.
public static void initElements(Object[] el)
initElements(Iterable)
for
an array of objects.
el
- the array of elements.public static void initElements(Initializable[] el)
Initializable
object in the array, calls the Initializable.init()
method.
public static void initElements(MeasureMatrix[] el)
MeasureMatrix
object in the array, calls the MeasureMatrix.init()
method.
public static void initElements(StatProbe[] el)
StatProbe
object in the array, calls the StatProbe.init()
method.
public static void initElements(ListOfStatProbes<?>[] el)
ListOfStatProbes
object in the array, calls the ListOfStatProbes.init()
method.
public static void initElements(MatrixOfStatProbes<?>[] el)
MatrixOfStatProbes
object in the array, calls the MatrixOfStatProbes.init()
method.
public static void toggleElements(Iterable<? extends ToggleElement> el, boolean enabled)
ToggleElement
object enumerated by the
iterable el, calls the
ToggleElement.start()
or ToggleElement.stop()
methods.
el
- the list of toggle elements.enabled
- true if the toggle elements are enabled, false
if they are disabled.public static void toggleElements(ToggleElement[] el, boolean enabled)
ToggleElement
object in the array el, calls the
ToggleElement.start()
or ToggleElement.stop()
methods.
el
- the array of toggle elements.enabled
- true if the toggle elements are enabled, false
if they are disabled.public static void startPeriodChangeEvents(Iterable<? extends PeriodChangeEvent> pce)
PeriodChangeEvent.start()
method.
pce
- the list of period-change events.public static void startPeriodChangeEvents(PeriodChangeEvent[] pce)
PeriodChangeEvent.start()
method.
pce
- the array of period-change events.public static void stopPeriodChangeEvents(Iterable<? extends PeriodChangeEvent> pce)
PeriodChangeEvent.stop()
method.
pce
- the list of period-change events.public static void stopPeriodChangeEvents(PeriodChangeEvent[] pce)
PeriodChangeEvent.stop()
method.
pce
- the array of period-change events.public static void clearWaitingQueues(Iterable<? extends WaitingQueue> waitingQueues, int dqType)
WaitingQueue
object in the list, calls
the WaitingQueue.clear()
method with the given dqType.
waitingQueues
- the list of waiting queues.dqType
- the dequeue type being used.
NullPointerException
- if the given list is null.public static void clearWaitingQueues(WaitingQueue[] waitingQueues, int dqType)
WaitingQueue
object in the array, calls
the WaitingQueue.clear()
method with the given dqType.
waitingQueues
- the array of waiting queues.dqType
- the dequeue type being used.
NullPointerException
- if the given list is null.public static void clearWaitingQueues(WaitingQueueSet[] waitingQueues, int dqType)
WaitingQueueSet
object in the array,
clears all registered waiting queues with the given dqType.
waitingQueues
- the array of waiting queues.dqType
- the dequeue type being used.
NullPointerException
- if the given list is null.public static String toShortString(Named named)
getName()
is
greater than 0, returns that name. Otherwise, this returns the result of
the toString method defined in Object
.
|
ContactCenters V. 0.9.9. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |