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.msk.stat
Class ChainCallCenterStat

    java.lang.Object
      umontreal.iro.lecuyer.contactcenters.msk.stat.ChainCallCenterStat

All Implemented Interfaces:
  CallCenterStatProbes

    public class ChainCallCenterStat

extends Object
implements CallCenterStatProbes

Combines the matrices of statistical probes from two call center statistical objects. Two implementations of `CallCenterStatProbes` are associated with each instance of this class. Each time a matrix of statistical probes is queried, this class queries the first inner call center statistic object. If the matrix is available, it returns it, otherwise, it queries the second inner object. This results in combining the statistics available in both objects.

Constructor Summary
`ChainCallCenterStat(CallCenterStatProbes stat1, CallCenterStatProbes stat2)` Constructs a new chained call center statistical object from inner objects `stat1` and `stat2`.

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.

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### ChainCallCenterStat

    public ChainCallCenterStat(CallCenterStatProbes stat1,
                               CallCenterStatProbes stat2)

  Constructs a new chained call center statistical object from inner objects `stat1` and `stat2`.

  Parameters:
    `stat1` - the first statistical object.
    `stat2` - the second statistical object.

Method Detail

### 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`

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.