|
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.contact.ContactArrivalProcess
umontreal.iro.lecuyer.contactcenters.contact.PoissonArrivalProcess
umontreal.iro.lecuyer.contactcenters.contact.PiecewiseConstantPoissonArrivalProcess
umontreal.iro.lecuyer.contactcenters.contact.PoissonArrivalProcessWithRandomRates
public class PoissonArrivalProcessWithRandomRates
Represents a poisson arrival process with piecewise-constant randomized arrival rates following a user-defined distribution. When constructing an arrival process of this type, one gives a specific random variate generator for each period. The arrival rates are generated independently for each period, each time the process is initialized.
Field Summary |
---|
Fields inherited from class umontreal.iro.lecuyer.contactcenters.contact.PiecewiseConstantPoissonArrivalProcess |
---|
busyGen, s_bgammaParam, s_numMC, varianceEpsilon |
Fields inherited from class umontreal.iro.lecuyer.contactcenters.contact.ContactArrivalProcess |
---|
contactEvent |
Constructor Summary | |
---|---|
PoissonArrivalProcessWithRandomRates(PeriodChangeEvent pce,
ContactFactory factory,
RandomVariateGen[] genLambdas,
RandomStream stream)
Constructs a new Poisson-gamma arrival process using factory to instantiate contacts. |
Method Summary | |
---|---|
double |
getExpectedArrivalRate(double st,
double et)
Determines the expected mean arrival rate in time interval [s, e] for this arrival process assuming that the expected value of the busyness factor is 1. |
double |
getExpectedArrivalRate(int p)
Determines the expected arrival rate in period p for this arrival process assuming that the expected value of the busyness factor is 1. |
RandomVariateGen[] |
getRateGenerators()
Returns the random variate generators for the arrival rates.. |
void |
init()
Initializes the new arrival process. |
void |
setRateGenerators(RandomVariateGen[] genLambdas)
Sets the random variate generators for the arrival rates to genLambdas. |
Methods inherited from class umontreal.iro.lecuyer.contactcenters.contact.PiecewiseConstantPoissonArrivalProcess |
---|
changePeriod, getArrivalRate, getArrivalRate, getInstanceFromMLE, getLambdas, getMLE, getMLENegMulti, getNumMC, getPeriodChangeEvent, getVarianceEpsilon, isNormalizing, setLambdas, setNormalizing, setNumMC, setVarianceEpsilon, startStationary, stop, toString |
Methods inherited from class umontreal.iro.lecuyer.contactcenters.contact.PoissonArrivalProcess |
---|
clearCache, getGenWithCache, getInstanceFromMLE, getLambda, getStream, initCache, isCaching, nextTime, setCaching, setLambda, setStream |
Methods inherited from class umontreal.iro.lecuyer.contactcenters.contact.ContactArrivalProcess |
---|
addNewContactListener, clearNewContactListeners, getArrivalRates, getBusynessFactor, getContactFactory, getExpectedArrivalRateB, getExpectedArrivalRateB, getExpectedArrivalRates, getExpectedArrivalRatesB, getExpectedBusynessFactor, getName, getNewContactListeners, getNextArrivalTime, init, isStarted, notifyNewContact, removeNewContactListener, setBusynessFactor, setContactFactory, setExpectedBusynessFactor, setName, setSimulator, simulator, start, start, stop |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public PoissonArrivalProcessWithRandomRates(PeriodChangeEvent pce, ContactFactory factory, RandomVariateGen[] genLambdas, RandomStream stream)
pce
- the period-change event associated with this object.factory
- the factory creating contacts for this generator.genLambdas
- the random variate generators, for each period.stream
- random number stream for the exponential variates.
IllegalArgumentException
- if there is not one generator
for each period.
NullPointerException
- if any argument is null.Method Detail |
---|
public RandomVariateGen[] getRateGenerators()
public void setRateGenerators(RandomVariateGen[] genLambdas)
genLambdas
- the random variate generators, for each period.
NullPointerException
- if genLambdas is null.
IllegalArgumentException
- if the length of the given
array does not correspond to at least the number of periods.public double getExpectedArrivalRate(int p)
ContactArrivalProcess
ContactArrivalProcess.getArrivalRate(int)
.
If
[B]≠1, one should use
ContactArrivalProcess.getExpectedArrivalRateB(int)
which takes the expectation of the busyness factor into account.
If the expected arrival rate is not available,
throws an UnsupportedOperationException
.
This is the default behavior of this
method if not overridden by a subclass.
getExpectedArrivalRate
in class PiecewiseConstantPoissonArrivalProcess
p
- the queried period index.
public double getExpectedArrivalRate(double st, double et)
ContactArrivalProcess
ContactArrivalProcess.getArrivalRate(double,double)
.
If
λ(t) is the arrival rate at time t, this
method returns
If
[B]≠1, one should use
ContactArrivalProcess.getExpectedArrivalRateB(double,double)
which takes the expectation of the busyness factor into account.
This method returns 0 if e≤s.
If the expected arrival rate is not available,
throws an UnsupportedOperationException
.
This is the default behavior of this
method if not overridden by a subclass.
getExpectedArrivalRate
in class PiecewiseConstantPoissonArrivalProcess
st
- the starting time s.et
- the ending time e.
public void init()
ContactArrivalProcess
init
in interface ContactSource
init
in interface Initializable
init
in class PiecewiseConstantPoissonArrivalProcess
|
ContactCenters V. 0.9.9. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |