|
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.app.trace.DBContactTrace
public class DBContactTrace
Defines an exited-contact listener used to output a trace of every call processed by a simulator into a database. Each time a new contact is notified to this listener, a SQL request is used to update a table through JDBC. This results in a call-by-call trace of the simulation. If an SQL exception is thrown at any given time by the writer, the exception's stack trace is printed, and this call logger is disabled to avoid getting any further exception message.
Field Summary |
---|
Fields inherited from interface umontreal.iro.lecuyer.contactcenters.app.trace.ContactTrace |
---|
OUTCOME_ABANDONED, OUTCOME_BLOCKED, OUTCOME_FAILED, OUTCOME_SERVED |
Constructor Summary | |
---|---|
DBContactTrace(DBConnectionParams dbProperties,
String dbTable)
Constructs a new call trace to a database, using the given parameters to establish the connection, and and sending the data to the table with the given name. |
Method Summary | |
---|---|
void |
close()
Closes the trace facility after a simulation. |
void |
init()
Initializes the tracing mechanism. |
void |
writeLine(int step,
int type,
int period,
double arvTime,
double queueTime,
String outcome,
int group,
double srvTime)
Writes a new line in the trace representing a simulated contact. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DBContactTrace(DBConnectionParams dbProperties, String dbTable)
dbProperties
- the database properties, for JDBCManager
.dbTable
- the output table for the trace.Method Detail |
---|
public void init()
ContactTrace
init
in interface ContactTrace
public void close()
ContactTrace
close
in interface ContactTrace
public void writeLine(int step, int type, int period, double arvTime, double queueTime, String outcome, int group, double srvTime)
ContactTrace
Double.NaN
if the information does not exist. For example,
a blocked or abandoned call does not have a serving agent group, or
a service time.
writeLine
in interface ContactTrace
step
- the step, in the experiment, during which the call occurred.type
- the type of the call.period
- the period of arrival of the call.arvTime
- the arrival time.queueTime
- the time spent by the call in the queue.outcome
- the outcome of the call.group
- the group of the serving agent.srvTime
- the service time of the call.
|
ContactCenters V. 0.9.9. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |