Overview | Package | Class | Tree | Deprecated | Index | Help
| ContactCenters V. 0.9.9.
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## umontreal.iro.lecuyer.contactcenters.app.trace
Class ExcelContactTrace

    java.lang.Object
      umontreal.iro.lecuyer.contactcenters.app.trace.ExcelContactTrace

All Implemented Interfaces:
  ContactTrace

    public class ExcelContactTrace

extends Object
implements ContactTrace

Outputs trace to an Excel spreadsheet using JExcel API.

Field Summary

Fields inherited from interface umontreal.iro.lecuyer.contactcenters.app.trace.ContactTrace
`OUTCOME_ABANDONED, OUTCOME_BLOCKED, OUTCOME_FAILED, OUTCOME_SERVED`

Constructor Summary
`ExcelContactTrace(File traceFile, String sheetName)` Creates a new call trace to a spreadsheet `sheetName` in an Excel file named `traceFile`.

Method Summary
`void` | `close()` Closes the trace facility after a simulation.
`void` | `init()` Initializes the tracing mechanism.
`void` | `writeHeader()`
`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

### ExcelContactTrace

    public ExcelContactTrace(File traceFile,
                             String sheetName)

  Creates a new call trace to a spreadsheet `sheetName` in an Excel file named `traceFile`.

  Parameters:
    `traceFile` - the output trace file.
    `sheetName` - the name of the sheet name containing the trace.

Method Detail

### init

    public void init()

  Description copied from interface: `ContactTrace`
  Initializes the tracing mechanism. This method opens the trace file or database connection, and writes headers, etc. If an error occurs during the initialization, this method should log the error, and disable tracing.

  Specified by:
    `init` in interface `ContactTrace`

### close

    public void close()

  Description copied from interface: `ContactTrace`
  Closes the trace facility after a simulation. This method closes files, database connections, etc.

  Specified by:
    `close` in interface `ContactTrace`

### writeHeader

    public void writeHeader()

### writeLine

    public void writeLine(int step,
                          int type,
                          int period,
                          double arvTime,
                          double queueTime,
                          String outcome,
                          int group,
                          double srvTime)

  Description copied from interface: `ContactTrace`
  Writes a new line in the trace representing a simulated contact. The line includes the step of the simulation at which the contact occurred, the type of the contact, the period of its arrival, its time spent in queue, its outcome, the group of its serving agent, and its service time. Some of these fields might be `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.

  Specified by:
    `writeLine` in interface `ContactTrace`
  Parameters:
    `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.

Overview | Package | Class | Tree | Deprecated | Index | Help
| ContactCenters V. 0.9.9.
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

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