|
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.stat.mperiods.IntegralMeasureMatrix<M>
umontreal.iro.lecuyer.contactcenters.NonStationaryMeasureMatrix<M>
public class NonStationaryMeasureMatrix<M extends MeasureMatrix>
Computes per-period values for a one-period measure matrix. This class
extends the IntegralMeasureMatrix
and maps a period with a contact
center period. It automatically calls IntegralMeasureMatrix.newRecord()
upon period changes.
Constructor Summary | |
---|---|
NonStationaryMeasureMatrix(PeriodChangeEvent pce,
M mat)
Constructs a new non-stationary measure matrix from the one-period measure matrix mat and using the period change event pce to define the periods. |
Method Summary | |
---|---|
void |
changePeriod(PeriodChangeEvent pce1)
Switches to the next period defined by pce. |
void |
setNumPeriods(int np)
Sets the number of periods of this matrix to np. |
void |
stop(PeriodChangeEvent pce1)
This method is called after the period-change event is stopped by PeriodChangeEvent.stop() . |
String |
toString()
|
Methods inherited from class umontreal.iro.lecuyer.stat.mperiods.IntegralMeasureMatrix |
---|
clone, createSumMatrix, getMeasure, getMeasureMatrix, getNumMeasures, getNumPeriods, getNumStoredRecords, getPeriod, getSum, getSumMatrix, init, newRecord, regroupPeriods, setMeasureMatrix, setNumMeasures |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public NonStationaryMeasureMatrix(PeriodChangeEvent pce, M mat)
pce
- the period change event.mat
- the one-period only measure matrix.
IllegalArgumentException
- if a multiple-periods measure matrix is given.
NullPointerException
- if any argument is null.Method Detail |
---|
public void setNumPeriods(int np)
MeasureMatrix
setNumPeriods
in interface MeasureMatrix
setNumPeriods
in class IntegralMeasureMatrix<M extends MeasureMatrix>
np
- the new number of periods.public void changePeriod(PeriodChangeEvent pce1)
PeriodChangeListener
PeriodChangeEvent.getCurrentPeriod()
returns the index
of the new period.
changePeriod
in interface PeriodChangeListener
pce1
- the source period-change event.public void stop(PeriodChangeEvent pce1)
PeriodChangeListener
PeriodChangeEvent.stop()
.
stop
in interface PeriodChangeListener
pce1
- the period-change event being stopped.public String toString()
toString
in class IntegralMeasureMatrix<M extends MeasureMatrix>
|
ContactCenters V. 0.9.9. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |