|
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.stat.CallCenterStatWithSlidingWindows
public class CallCenterStatWithSlidingWindows
Contains the necessary logic for computing statistics
in time windows, for a call center model.
Some routing or dialing policies might take decisions based
on some statistics collected during the last few minutes of
operation of the call center.
This class provides the necessary tools for collecting
such statistics.
One first constructs an instance using a call center model, a number
of periods, and a period duration.
The instance is then registered with the model when
statistics are needed, by using registerListeners()
.
The method getStat()
can then be called at any time
to obtain the statistics in the last time periods.
Internally, this class uses counters with sliding windows
to collect the observations.
Constructor Summary | |
---|---|
CallCenterStatWithSlidingWindows(CallCenter cc,
double periodDuration,
int numPeriods,
boolean contactTypeAgentGroup,
PerformanceMeasureType... pms)
Constructs a new call center statistical collector with sliding windows, for the call center model cc, a window of numPeriods periods of periodDuration time units, and for performance measures of type pms. |
Method Summary | |
---|---|
CallCenterStatProbes |
getStat()
Initializes an object containing the statistics in the last periods. |
void |
init()
Resets the internal statistical counters. |
boolean |
isStarted()
Determines if the element is enabled or disabled. |
void |
registerListeners()
Registers listeners with the call center model in order to collect observations. |
void |
start()
Enables the element represented by this object. |
void |
stop()
Disables the element represented by this object. |
void |
unregisterListeners()
Unregisters the listeners with the call center model. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CallCenterStatWithSlidingWindows(CallCenter cc, double periodDuration, int numPeriods, boolean contactTypeAgentGroup, PerformanceMeasureType... pms)
cc
- the call center model.periodDuration
- the duration of the statistical periods.numPeriods
- the number of statistical periods.contactTypeAgentGroup
- determines if (call type, agent group)
rows are needed.pms
- the types of performance measures for which
statistics are needed.Method Detail |
---|
public void registerListeners()
public void unregisterListeners()
public void init()
init
in interface Initializable
public void start()
ToggleElement
IllegalStateException
if the element is already enabled.
start
in interface ToggleElement
public void stop()
ToggleElement
IllegalStateException
if the element is already disabled.
stop
in interface ToggleElement
public boolean isStarted()
ToggleElement
isStarted
in interface ToggleElement
public CallCenterStatProbes getStat()
|
ContactCenters V. 0.9.9. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |