ContactCenters
V. 0.9.9.

umontreal.iro.lecuyer.contactcenters.msk.model
Class CallNotifierForBadContactMismatchRate

java.lang.Object
  extended by umontreal.iro.lecuyer.contactcenters.msk.model.CallNotifierForBadContactMismatchRate
All Implemented Interfaces:
NewContactListener, ExitedContactListener

public class CallNotifierForBadContactMismatchRate
extends Object
implements ExitedContactListener, NewContactListener

Exited-contact and new-contact listeners used to update the state of the BADCONTACTMISMATCHRATE dialer's policy. This listener calls BadContactMismatchRatesDialerPolicy.notifyInboundContact(Contact,boolean), and BadContactMismatchRatesDialerPolicy.notifyOutboundContact(Contact,boolean) methods when failed contacts are notified, or when other contacts exit. This listener should be registered with the router and with the dialer to receive failed calls.


Constructor Summary
CallNotifierForBadContactMismatchRate(DialerManager dialerManager)
          Constructs a new call notifier for the dialer manager dialerManager.
 
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.
 void newContact(Contact contact)
          Notifies the listener about a new contact contact.
 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

CallNotifierForBadContactMismatchRate

public CallNotifierForBadContactMismatchRate(DialerManager dialerManager)
Constructs a new call notifier for the dialer manager dialerManager.

Parameters:
dialerManager - the associated dialer manager.
Method Detail

newContact

public void newContact(Contact contact)
Description copied from interface: NewContactListener
Notifies the listener about a new contact contact. The given contact object can be assumed non-null, and may be stored or processed in any needed ways.

Specified by:
newContact in interface NewContactListener
Parameters:
contact - the new contact.

blocked

public void blocked(Router router,
                    Contact contact,
                    int bType)
Description copied from interface: ExitedContactListener
This method is called when the contact contact is blocked in the router router. The integer bType is used to indicate the reason of the blocking, e.g., the contact could not be served or put into any waiting queue.

Specified by:
blocked in interface ExitedContactListener
Parameters:
router - the router causing the blocking.
contact - the blocked contact.
bType - an indicator giving the reason why the contact is blocked.

dequeued

public void dequeued(Router router,
                     DequeueEvent ev)
Description copied from interface: ExitedContactListener
This method is called when a contact leaves a waiting queue linked to the router router, without being served.

Specified by:
dequeued in interface ExitedContactListener
Parameters:
router - the router causing the dequeueing.
ev - the dequeue event.

served

public void served(Router router,
                   EndServiceEvent ev)
Description copied from interface: ExitedContactListener
This method is called when a contact was served by an agent. This method is called by the router before the after-contact work begins so ev does not contain the information about after-contact time.

Specified by:
served in interface ExitedContactListener
Parameters:
router - the router managing the contact.
ev - the end service event.

ContactCenters
V. 0.9.9.

To submit a bug or ask questions, send an e-mail to Richard Simard.