|
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.CallByCallMeasureManager
public class CallByCallMeasureManager
Contains and updates call-by-call measures for a call center model. This includes the number of arrivals, the number of services, etc. Any object of this class encapsulates matrices of sums for each type of call-by-call measure. It is also an exited-contact listener which can be notified each time a call leaves the system, for statistical collecting.
Constructor Summary | |
---|---|
CallByCallMeasureManager(CallCenter cc,
StatPeriod statP,
boolean contactTypeAgentGroups)
Constructs an observer for all supported types of call-by-call measures, for the call center model cc, and using statP to obtain the statistical period of each counted call. |
|
CallByCallMeasureManager(CallCenter cc,
StatPeriod statP,
boolean contactTypeAgentGroups,
Collection<MeasureType> measures)
Similar to constructor StatPeriod, boolean) ,
but restricts the counters to the given
collection of measure types. |
Method Summary | |
---|---|
void |
blocked(Router router,
Contact contact,
int bType)
This method is called when the contact contact is blocked in the router router. |
void |
dequeued(Router router,
DequeueEvent ev)
This method is called when a contact leaves a waiting queue linked to the router router, without being served. |
StatPeriod |
getStatPeriod()
Returns the simulation logic associated with this object. |
boolean |
hasMeasures()
|
void |
init()
Initializes every measure matrices defined by this object. |
void |
initMeasureMap(Map<MeasureType,MeasureMatrix> measureMap)
Initializes the given map measureMap with the measure matrices declared by this class. |
boolean |
isContactTypeAgentGroup()
Returns true if this group of call center measures contains matrices whose rows correspond to counters concerning (contact type, agent group) pairs. |
void |
newAbandoned(Contact contact,
int period)
|
void |
newArrival(Contact contact,
int period)
|
void |
newBlocked(Contact contact,
int period)
|
void |
newDelayed(Contact contact,
int period)
|
void |
newServed(Contact contact,
int period)
|
void |
newServiceTime(Contact contact,
int period,
double time)
|
void |
newWaitingTimeAbandoned(Contact contact,
int period,
double t)
|
void |
newWaitingTimeServed(Contact contact,
int period,
double t)
|
void |
newWaitingTimeVQAbandoned(Contact contact,
int period,
double t)
|
void |
newWaitingTimeVQServed(Contact contact,
int period,
double t)
|
void |
newWrong(Contact contact,
int period)
|
void |
served(Router router,
EndServiceEvent ev)
This method is called when a contact was served by an agent. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CallByCallMeasureManager(CallCenter cc, StatPeriod statP, boolean contactTypeAgentGroups)
Many counters concerning a call type can be separated into I counters, one for each agent group. This can be useful to obtain statistics concerning specific (call type, agent group) pairs, but this requires more memory. The boolean argument contactTypeAgentGroups determines if this separation is needed. If (call type, agent group) statistics are needed, this argument is true. Otherwise, it is false.
cc
- the call center model.statP
- the object used to get statistical periods of calls.contactTypeAgentGroups
- determines if statistics for
(call type, agent group) pairs are needed.public CallByCallMeasureManager(CallCenter cc, StatPeriod statP, boolean contactTypeAgentGroups, Collection<MeasureType> measures)
StatPeriod, boolean)
,
but restricts the counters to the given
collection of measure types.
Method Detail |
---|
public StatPeriod getStatPeriod()
public boolean isContactTypeAgentGroup()
public void initMeasureMap(Map<MeasureType,MeasureMatrix> measureMap)
MeasureType
while values are instances of MeasureMatrix
.
measureMap
- the map to be initialized.public boolean hasMeasures()
public void init()
public void newArrival(Contact contact, int period)
public void newWrong(Contact contact, int period)
public void newServiceTime(Contact contact, int period, double time)
public void newBlocked(Contact contact, int period)
public void newDelayed(Contact contact, int period)
public void newWaitingTimeAbandoned(Contact contact, int period, double t)
public void newWaitingTimeServed(Contact contact, int period, double t)
public void newWaitingTimeVQAbandoned(Contact contact, int period, double t)
public void newWaitingTimeVQServed(Contact contact, int period, double t)
public void newAbandoned(Contact contact, int period)
public void newServed(Contact contact, int period)
public void blocked(Router router, Contact contact, int bType)
ExitedContactListener
blocked
in interface ExitedContactListener
router
- the router causing the blocking.contact
- the blocked contact.bType
- an indicator giving the reason why the contact is blocked.public void dequeued(Router router, DequeueEvent ev)
ExitedContactListener
dequeued
in interface ExitedContactListener
router
- the router causing the dequeueing.ev
- the dequeue event.public void served(Router router, EndServiceEvent ev)
ExitedContactListener
served
in interface ExitedContactListener
router
- the router managing the contact.ev
- the end service event.
|
ContactCenters V. 0.9.9. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |