|
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.AbstractContactCenterInfo
umontreal.iro.lecuyer.contactcenters.app.AbstractContactCenterEval
public abstract class AbstractContactCenterEval
Defines basic methods to implement a contact center evaluation system.
Constructor Summary | |
---|---|
AbstractContactCenterEval()
|
Method Summary | |
---|---|
String |
formatStatistics()
Formats information about every performance measure after ContactCenterEval.eval() is called. |
boolean |
formatStatisticsExcel(WritableWorkbook wb)
Constructs and returns an JExcel API workbook containing the results of the evaluation, and appends the contents of the generated report to the workbook wb. |
String |
formatStatisticsLaTeX()
Formats and returns a statistical report that can be included into a LATEX document. |
Map<String,Object> |
getEvalInfo()
Represents information about this evaluation system that should be included in any report produced by ContactCenterEval.formatStatistics() . |
ReportParams |
getReportParams()
Returns the parameters for reports formatted by ContactCenterEval.formatStatistics() , or
ContactCenterEval.formatStatisticsExcel(WritableWorkbook) . |
boolean |
isVerbose()
Determines if the implementation should print information during the evaluation of the performance measures. |
void |
setReportParams(ReportParams reportParams)
Sets the report parameters to reportParams. |
void |
setVerbose(boolean v)
Sets the verbose status to v. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface umontreal.iro.lecuyer.contactcenters.app.ContactCenterEval |
---|
eval, getEvalOption, getEvalOptions, getPerformanceMeasure, getPerformanceMeasures, hasEvalOption, hasPerformanceMeasure, reset, seemsUnstable, setEvalOption |
Constructor Detail |
---|
public AbstractContactCenterEval()
Method Detail |
---|
public boolean isVerbose()
ContactCenterEval
isVerbose
in interface ContactCenterEval
public void setVerbose(boolean v)
ContactCenterEval
setVerbose
in interface ContactCenterEval
v
- true to activate verbose mode, false to disable it.ContactCenterEval.isVerbose()
public Map<String,Object> getEvalInfo()
ContactCenterEval
ContactCenterEval.formatStatistics()
.
The information is organized as
(key, value) pairs in a map. This information may include
steps of an approximation, number of iterations, etc.
One can modify the returned map to add
custom information.
The content of this map should not
affect the process of the evaluation;
it is used only for building
the statistical report.
One can use evaluation options for
system parameters.
getEvalInfo
in interface ContactCenterEval
public ReportParams getReportParams()
ContactCenterEval
ContactCenterEval.formatStatistics()
, or
ContactCenterEval.formatStatisticsExcel(WritableWorkbook)
.
If no object containing report parameters
is available, this method
should create a new one using
the default constructor of
ReportParams
.
getReportParams
in interface ContactCenterEval
public void setReportParams(ReportParams reportParams)
ContactCenterEval
setReportParams
in interface ContactCenterEval
reportParams
- the report parameters..ContactCenterEval.getReportParams()
public String formatStatistics()
ContactCenterEval
ContactCenterEval.eval()
is called.
It can be simulation statistics, information
about the steps of an approximation algorithm,
or simply the values of all performance measures.
This method should call ContactCenterEval.getEvalInfo()
to obtain general information about the evaluation
and incorporate the information into the
returned string.
For each entry in the map, the method
should add a key: value line
in the string.
Then, the method appends the performance measures
to the returned string.
The PerformanceMeasureFormatText
class
can be used to convert matrices of performance measures
into strings.
If the evaluation was not triggered by
calling ContactCenterEval.eval()
before this method is called,
an IllegalStateException
is thrown.
If no statistical information is available even
after the evaluation, this method should return
an empty string instead of throwing an exception.
formatStatistics
in interface ContactCenterEval
public String formatStatisticsLaTeX()
ContactCenterEval
ContactCenterEval.formatStatistics()
,
except the generated report is in LATEX rather than
plain text.
formatStatisticsLaTeX
in interface ContactCenterEval
public boolean formatStatisticsExcel(WritableWorkbook wb)
ContactCenterEval
ContactCenterEval.getEvalInfo()
to a sheet in the
workbook.
This method returns true if and only if the given
workbook was modified.
One can then customize the returned workbook as needed.
The method WritableWorkbook.write()
can
be used to export the workbook to an output
stream.
This can be used to create files that can be opened
directly by Microsoft Excel for
results analysis and reporting.
Excel documents can also be opened by
open source software such as OpenOffice.org,
KOffice, etc.
formatStatisticsExcel
in interface ContactCenterEval
wb
- the workbook to append report to.
|
ContactCenters V. 0.9.9. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |