|
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.CallCounter
public class CallCounter
Defines a new-contact listener for counting calls. This encapsulates a measure matrix with K rows and a column for each statistical period. Each time a new contact is notified, the element with row k and column p is incremented, where k is the type of the new contact and p is its statistical period.
Constructor Summary | |
---|---|
CallCounter(CallCenter cc,
StatPeriod statP,
MeasureType mt)
Constructs a new call counter using call center cc, for type of measure mt, and using statP to obtain statistical periods. |
Method Summary | |
---|---|
SumMatrix |
getCount()
Returns the matrix containing the counts. |
void |
init()
Initializes the call counter. |
void |
newContact(Contact contact)
Notifies the listener about a new contact contact. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CallCounter(CallCenter cc, StatPeriod statP, MeasureType mt)
cc
- the call center model.statP
- the object for obtaining statistical periods of calls.mt
- the type of measure for the counter.Method Detail |
---|
public SumMatrix getCount()
public void init()
public void newContact(Contact contact)
NewContactListener
newContact
in interface NewContactListener
contact
- the new contact.
|
ContactCenters V. 0.9.9. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |