|
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.contact.Contact
umontreal.iro.lecuyer.contactcenters.msk.model.Call
public class Call
Represents a call in the multi-skill call center simulator. A call is a special type of contact that stores the periods of its arrival, of its service startup and its service termination. These periods can be stored, because the model uses a single period-change event. A call also holds additional information such as transfer times, conference times, etc.
Constructor Summary | |
---|---|
Call(PeriodChangeEvent pce,
int arrivalPeriod)
Equivalent to Call
(pce, arrivalPeriod, 1, 0). |
|
Call(PeriodChangeEvent pce,
int arrivalPeriod,
double priority,
int typeId)
Constructs a new call with period-change event pce, period of arrival arrivalPeriod, priority priority, and type identifier typeId. |
|
Call(PeriodChangeEvent pce,
int arrivalPeriod,
int typeId)
Equivalent to Call
(pce, arrivalPeriod, 1, typeId). |
Method Summary | |
---|---|
void |
beginService(EndServiceEvent ev)
This method is called when the service of this contact by an agent begins, the end-service event ev representing the contact being served. |
void |
blocked(int bType)
This method is called when the contact is blocked by its current router with blocking type bType. |
void |
dequeued(DequeueEvent ev)
This method is called when a contact leaves a queue, the dequeue event ev representing the queued contact. |
void |
endContact(EndServiceEvent ev)
This method is called when the communication between this contact and an agent is terminated. |
int |
getArrivalPeriod()
Returns the period during which this call has arrived. |
int |
getBeginServicePeriod()
Returns the period at which the service of this call started, or -1 if this call was never served. |
ServiceTimes |
getConferenceTimes()
Returns the conference times spent by a primary agent with a secondary before the service of this transferred call begins with the secondary agent. |
int |
getExitPeriod()
Returns the period at which this call exited the system, or -1 if the call is still in the system. |
PeriodChangeEvent |
getPeriodChangeEvent()
Returns the period-change event used to initializes the period at which the service begins, and at which this call exits. |
ServiceTimes |
getPreServiceTimesNoConf()
Returns the pre-service times with an agent. |
EndServiceEvent |
getPrimaryEndServiceEvent()
If this object represents a transferred call, returns a reference to the end-service event representing the service with the primary agent, before the transfer. |
ServiceTimes |
getTransferTimes()
Returns the transfer times spent by primary agents to initiate call transfers. |
int |
getTypeBeforeVQ()
Returns the type of this call before entering virtual queue. |
double |
getUTransfer()
Returns the random number used to test if a call is transferred after its service is over. |
double |
getUTransferWait()
Returns the uniform used to decide if the primary agent waits for a secondary agent after a transfer. |
double |
getUVQ()
Returns the uniform used to decide if a call accepts to be called back (or join the virtual queue) if offered the possibility. |
double |
getUVQCallBack()
Returns the uniform used to decide if a call returning from the virtual queue is successfully called back. |
double |
getWaitingTimeVQ()
Returns the time spent in virtual queue by this call. |
boolean |
isRightPartyConnect()
Determines if this call is a right party connect. |
void |
setArrivalPeriod(int arrivalPeriod)
Sets the period of arrival of this call to arrivalPeriod. |
void |
setBeginServicePeriod(int beginServicePeriod)
Sets the period at which the service of this call begins to beginServicePeriod. |
void |
setExitPeriod(int exitPeriod)
Sets the period at which this call exits the system to exitPeriod. |
void |
setPeriodChangeEvent(PeriodChangeEvent pce)
Sets the period-change event of this call to pce. |
void |
setPrimaryEndServiceEvent(EndServiceEvent primaryEndServiceEvent)
Sets the end-service event associated with the primary agent for a transferred call to primaryEndServiceEvent. |
void |
setRightPartyConnect(boolean rightPartyConnect)
Sets the indicator for right party connect to rightPartyConnect. |
void |
setTypeBeforeVQ(int beforeVQ)
Sets the type of this call before it enters virtual queue to beforeVQ. |
void |
setUTransfer(double transfer)
Sets the uniform for transfer decision to transfer. |
void |
setUTransferWait(double transferWait)
Sets the uniform for deciding if the primary agent waits for a secondary agent to transferWait. |
void |
setUVQ(double u)
Sets the uniform for deciding if a call chooses to be called back to u. |
void |
setUVQCallBack(double u)
Sets the uniform for call back success to u. |
void |
setWaitingTimeVQ(double waitingTimeVQ)
Sets the waiting time in virtual queue of this call to waitingTimeVQ. |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Call(PeriodChangeEvent pce, int arrivalPeriod)
Call
(pce, arrivalPeriod, 1, 0).
pce
- the period-change event associated with the call.arrivalPeriod
- the period of arrival of the call.
NullPointerException
- if pce is null.public Call(PeriodChangeEvent pce, int arrivalPeriod, int typeId)
Call
(pce, arrivalPeriod, 1, typeId).
pce
- the period-change event associated with the call.arrivalPeriod
- the period of arrival of the call.typeId
- the type identifier of the call.
NullPointerException
- if pce is null.public Call(PeriodChangeEvent pce, int arrivalPeriod, double priority, int typeId)
pce
- the period-change event associated with the call.arrivalPeriod
- the period of arrival of the call.priority
- the priority of the call.typeId
- the type identifier of the call.
NullPointerException
- if pce is null.Method Detail |
---|
public int getArrivalPeriod()
public void setArrivalPeriod(int arrivalPeriod)
arrivalPeriod
- the new period of arrival.public int getBeginServicePeriod()
public void setBeginServicePeriod(int beginServicePeriod)
beginServicePeriod
- the period at which the service of this call begins.public int getExitPeriod()
public void setExitPeriod(int exitPeriod)
exitPeriod
- the period at which this call exits the system.public PeriodChangeEvent getPeriodChangeEvent()
public void setPeriodChangeEvent(PeriodChangeEvent pce)
pce
- the period-change event associated with this call.
NullPointerException
- if pce is null.public void beginService(EndServiceEvent ev)
Contact
beginService
in class Contact
ev
- the event occurring at the end of the service.public void blocked(int bType)
Contact
Contact.getRouter()
method can be used to access
the reference to the router which blocked this contact while
bType indicates the reason why the contact was blocked.
blocked
in class Contact
bType
- the contact blocking type.public void dequeued(DequeueEvent ev)
Contact
dequeued
in class Contact
ev
- the dequeue event associated with the contact.public void endContact(EndServiceEvent ev)
Contact
endContact
in class Contact
ev
- the end-service event associated with the contact.public boolean isRightPartyConnect()
OutboundCallFactory
can
set this flag to false in order to
generate a wrong party connect.
This differs from a failed call, which is handled by
the dialer itself, because an agent is needed to
screen the call.
The main use of the returned value is for
statistical collecting.
public void setRightPartyConnect(boolean rightPartyConnect)
rightPartyConnect
- the new value of the indicator.isRightPartyConnect()
public EndServiceEvent getPrimaryEndServiceEvent()
public void setPrimaryEndServiceEvent(EndServiceEvent primaryEndServiceEvent)
primaryEndServiceEvent
- the new end-service event.public double getUTransfer()
public void setUTransfer(double transfer)
transfer
- the new uniform.
IllegalArgumentException
- if transfer is out of
[0, 1].getUTransfer()
public double getUTransferWait()
public void setUTransferWait(double transferWait)
transferWait
- the new uniform.
IllegalArgumentException
- if transferWait is out of
[0, 1].getUTransferWait()
public double getUVQ()
public void setUVQ(double u)
u
- the new uniform.
IllegalArgumentException
- if u
is not in [0, 1].getUVQ()
public double getUVQCallBack()
public void setUVQCallBack(double u)
u
- the new uniform.
IllegalArgumentException
- if u
is not in [0, 1].getUVQCallBack()
public ServiceTimes getConferenceTimes()
public ServiceTimes getPreServiceTimesNoConf()
public ServiceTimes getTransferTimes()
public double getWaitingTimeVQ()
public void setWaitingTimeVQ(double waitingTimeVQ)
waitingTimeVQ
- the new waiting time in virtual queue.public int getTypeBeforeVQ()
public void setTypeBeforeVQ(int beforeVQ)
beforeVQ
- the original type of this call.
|
ContactCenters V. 0.9.9. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |