ContactCenters
V. 0.9.9.

umontreal.iro.lecuyer.contactcenters
Interface PeriodChangeListener

All Known Implementing Classes:
AgentGroup, DetailedAgentGroup, DirichletCompoundArrivalProcess, NonStationaryMeasureMatrix, PiecewiseConstantPoissonArrivalProcess, PoissonArrivalProcessWithRandomRates, PoissonGammaArrivalProcess, PoissonGammaNortaRatesArrivalProcess

public interface PeriodChangeListener

Represents a period-change listener being notified when period-change events occur.


Method Summary
 void changePeriod(PeriodChangeEvent pce)
          Switches to the next period defined by pce.
 void stop(PeriodChangeEvent pce)
          This method is called after the period-change event is stopped by PeriodChangeEvent.stop().
 

Method Detail

changePeriod

void changePeriod(PeriodChangeEvent pce)
Switches to the next period defined by pce. This can change the parameters and correct scheduled events accordingly. If no parameters are available for the new period, the method should try to use those of the last available period. The listener is called after the period change has occurred, so PeriodChangeEvent.getCurrentPeriod() returns the index of the new period.

Parameters:
pce - the source period-change event.

stop

void stop(PeriodChangeEvent pce)
This method is called after the period-change event is stopped by PeriodChangeEvent.stop().

Parameters:
pce - the period-change event being stopped.

ContactCenters
V. 0.9.9.

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