|
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.CallTracer
public class CallTracer
Observer sending any notified call to a contact trace facility.
An object of this class is constructed using a ContactTrace
instance as well as a SimLogic
object.
Each time a call exits the simulated system, a line
is written to the associated trace, using information
obtained from the contact object, and the simulation logic.
Constructor Summary | |
---|---|
CallTracer(SimLogic simLogic,
ContactTrace trace)
Creates a new call tracer from the given simulation logic and trace. |
Method Summary | |
---|---|
void |
blocked(Router router,
Contact contact,
int type)
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. |
ContactTrace |
getContactTrace()
Returns the associated facility for contact-by-contact trace. |
SimLogic |
getSimLogic()
Returns the simulation logic associated with this call tracer. |
void |
newContact(Contact contact)
Notifies the listener about a new contact contact. |
void |
register()
Registers this call tracer with the model associated with the simulation logic returned by getSimLogic() . |
void |
served(Router router,
EndServiceEvent ev)
This method is called when a contact was served by an agent. |
void |
unregister()
Unregisters this call tracer with the model associated with the simulation logic returned by getSimLogic() . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CallTracer(SimLogic simLogic, ContactTrace trace)
simLogic
- the simulation logic used to get
step and period for the trace.trace
- the object representing the call-by-call trace
facility.Method Detail |
---|
public SimLogic getSimLogic()
public ContactTrace getContactTrace()
public void blocked(Router router, Contact contact, int type)
ExitedContactListener
blocked
in interface ExitedContactListener
router
- the router causing the blocking.contact
- the blocked contact.type
- 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.public void newContact(Contact contact)
NewContactListener
newContact
in interface NewContactListener
contact
- the new contact.public void register()
getSimLogic()
.
After this method is called, this listener is notified
about every contact leaving the simulated system as
well as any failed outbound call.
public void unregister()
getSimLogic()
.
|
ContactCenters V. 0.9.9. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |