ContactCenters
V. 0.9.9.

umontreal.iro.lecuyer.contactcenters.msk.stat
Class AbstractCallCenterStatProbes

java.lang.Object
  extended by umontreal.iro.lecuyer.contactcenters.msk.stat.AbstractCallCenterStatProbes
All Implemented Interfaces:
CallCenterStatProbes
Direct Known Subclasses:
SimCallCenterStat, StatCallCenterStat

public class AbstractCallCenterStatProbes
extends Object
implements CallCenterStatProbes

This base class defines two maps that contain the statistical probes being managed. The first map, tallyMap, associates types of performance measures with matrices of tallies. The second map, fmmTallyMap, binds types of performance measures with matrices of function of multiple means tallies. The methods in this class assume that every type of performance measure do not appear in both maps.


Field Summary
protected  Map<PerformanceMeasureType,MatrixOfFunctionOfMultipleMeansTallies<?>> fmmTallyMap
          Map associating types of performance measures with matrices of function of multiple means tallies.
protected  Map<PerformanceMeasureType,MatrixOfTallies<?>> tallyMap
          Map associating types of performance measures with matrices of tallies.
 
Constructor Summary
AbstractCallCenterStatProbes()
           
 
Method Summary
 DoubleMatrix2D getAverage(PerformanceMeasureType pm)
           
 DoubleMatrix2D[] getConfidenceInterval(PerformanceMeasureType pm, double level)
           
 Map<PerformanceMeasureType,MatrixOfStatProbes<?>> getMatricesOfStatProbes()
          Returns a map containing the matrix of statistical probes for each type of performance measure.
 MatrixOfFunctionOfMultipleMeansTallies<?> getMatrixOfFunctionOfMultipleMeansTallies(PerformanceMeasureType pm)
          Returns a matrix of function of multiple means tallies corresponding to the given type pm of performance measure.
 MatrixOfStatProbes<?> getMatrixOfStatProbes(PerformanceMeasureType pm)
          Returns a matrix of statistical probes corresponding to the given type pm of performance measure.
 MatrixOfTallies<?> getMatrixOfTallies(PerformanceMeasureType pm)
          Returns a matrix of tallies corresponding to the given type pm of performance measure.
 MatrixOfTallies<TallyStore> getMatrixOfTallyStores(PerformanceMeasureType pm)
          Returns a matrix of tallies corresponding to the given type pm of performance measure.
 DoubleMatrix2D getMax(PerformanceMeasureType pm)
           
 DoubleMatrix2D getMin(PerformanceMeasureType pm)
           
 PerformanceMeasureType[] getPerformanceMeasures()
          Returns the types of performance measures contained into the implemented set of call center probes.
 DoubleMatrix2D getVariance(PerformanceMeasureType pm)
           
 DoubleMatrix2D getVarianceOfAverage(PerformanceMeasureType pm)
           
 boolean hasPerformanceMeasure(PerformanceMeasureType pm)
          Determines if the implementing set of call center probes contains a matrix of probes for the performance measure pm.
 void init()
          Initializes the statistical collectors contained in this object.
protected  void initPerformanceMeasures()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

tallyMap

protected Map<PerformanceMeasureType,MatrixOfTallies<?>> tallyMap
Map associating types of performance measures with matrices of tallies.


fmmTallyMap

protected Map<PerformanceMeasureType,MatrixOfFunctionOfMultipleMeansTallies<?>> fmmTallyMap
Map associating types of performance measures with matrices of function of multiple means tallies.

Constructor Detail

AbstractCallCenterStatProbes

public AbstractCallCenterStatProbes()
Method Detail

initPerformanceMeasures

protected void initPerformanceMeasures()

init

public void init()
Description copied from interface: CallCenterStatProbes
Initializes the statistical collectors contained in this object.

Specified by:
init in interface CallCenterStatProbes

getPerformanceMeasures

public PerformanceMeasureType[] getPerformanceMeasures()
Description copied from interface: CallCenterStatProbes
Returns the types of performance measures contained into the implemented set of call center probes. If the implementing group of probes does not contain any matrix of statistical probes, this method must return an array with length 0 rather than null.

Specified by:
getPerformanceMeasures in interface CallCenterStatProbes
Returns:
the supported types of performance measures.

hasPerformanceMeasure

public boolean hasPerformanceMeasure(PerformanceMeasureType pm)
Description copied from interface: CallCenterStatProbes
Determines if the implementing set of call center probes contains a matrix of probes for the performance measure pm. This method returns true if and only if CallCenterStatProbes.getPerformanceMeasures() returns an array containing pm.

Specified by:
hasPerformanceMeasure in interface CallCenterStatProbes
Parameters:
pm - the type of performance measure.
Returns:
true if the measures are computed by the simulator, false otherwise.

getMatricesOfStatProbes

public Map<PerformanceMeasureType,MatrixOfStatProbes<?>> getMatricesOfStatProbes()
Description copied from interface: CallCenterStatProbes
Returns a map containing the matrix of statistical probes for each type of performance measure.

Specified by:
getMatricesOfStatProbes in interface CallCenterStatProbes
Returns:
the map of statistical probes.

getMatrixOfStatProbes

public MatrixOfStatProbes<?> getMatrixOfStatProbes(PerformanceMeasureType pm)
Description copied from interface: CallCenterStatProbes
Returns a matrix of statistical probes corresponding to the given type pm of performance measure. If the type pm is not supported, this method throws a NoSuchElementException.

Specified by:
getMatrixOfStatProbes in interface CallCenterStatProbes
Parameters:
pm - the type of performance measure.
Returns:
the matrix of statistical probes.

getMatrixOfTallies

public MatrixOfTallies<?> getMatrixOfTallies(PerformanceMeasureType pm)
Description copied from interface: CallCenterStatProbes
Returns a matrix of tallies corresponding to the given type pm of performance measure. This method usually calls CallCenterStatProbes.getMatrixOfStatProbes(PerformanceMeasureType) and casts the results into a matrix of tallies.

Specified by:
getMatrixOfTallies in interface CallCenterStatProbes
Parameters:
pm - the type of performance measure.
Returns:
the matrix of tallies.

getMatrixOfTallyStores

public MatrixOfTallies<TallyStore> getMatrixOfTallyStores(PerformanceMeasureType pm)
Description copied from interface: CallCenterStatProbes
Returns a matrix of tallies corresponding to the given type pm of performance measure. This method usually calls CallCenterStatProbes.getMatrixOfStatProbes(PerformanceMeasureType) and casts the results into a matrix of tallies that can store their observations.

Specified by:
getMatrixOfTallyStores in interface CallCenterStatProbes
Parameters:
pm - the type of performance measure.
Returns:
the matrix of tallies.

getMatrixOfFunctionOfMultipleMeansTallies

public MatrixOfFunctionOfMultipleMeansTallies<?> getMatrixOfFunctionOfMultipleMeansTallies(PerformanceMeasureType pm)
Description copied from interface: CallCenterStatProbes
Returns a matrix of function of multiple means tallies corresponding to the given type pm of performance measure. This method usually calls CallCenterStatProbes.getMatrixOfStatProbes(PerformanceMeasureType) and casts the results into a matrix of tallies.

Specified by:
getMatrixOfFunctionOfMultipleMeansTallies in interface CallCenterStatProbes
Parameters:
pm - the type of performance measure.
Returns:
the matrix of tallies.

getAverage

public DoubleMatrix2D getAverage(PerformanceMeasureType pm)
Specified by:
getAverage in interface CallCenterStatProbes

getMax

public DoubleMatrix2D getMax(PerformanceMeasureType pm)
Specified by:
getMax in interface CallCenterStatProbes

getMin

public DoubleMatrix2D getMin(PerformanceMeasureType pm)
Specified by:
getMin in interface CallCenterStatProbes

getVariance

public DoubleMatrix2D getVariance(PerformanceMeasureType pm)
Specified by:
getVariance in interface CallCenterStatProbes

getVarianceOfAverage

public DoubleMatrix2D getVarianceOfAverage(PerformanceMeasureType pm)
Specified by:
getVarianceOfAverage in interface CallCenterStatProbes

getConfidenceInterval

public DoubleMatrix2D[] getConfidenceInterval(PerformanceMeasureType pm,
                                              double level)
Specified by:
getConfidenceInterval in interface CallCenterStatProbes

ContactCenters
V. 0.9.9.

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