|
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.ctmc.RateChangeTransitions
public class RateChangeTransitions
Provides methods to determine
transitions at which arrivl rates
change in order to have piecewise-constant
arrival rates in the CTMC simulator.
By default, a simulator based on an
implementation of CallCenterCTMC
uses a fixed arrival rate for each call type.
Each replication, N(T) transitions are
simulated.
This class provides methods to determine
how many transitions to simulate with each arrival
rate, and generate a sequence of
(t, k, λk) tuples.
Each tuple indicates that the arrival rate
for call type k changes to λk
at transition number t.
Constructor Summary | |
---|---|
RateChangeTransitions(CallCenter cc)
Constructs a new object for managing changes of arrival rates for the call center cc. |
Method Summary | |
---|---|
RateChangeInfo[] |
generateRateChanges(RandomStream stream,
double[][] timeDist,
int ntr)
Generates and returns a sequence of changes of arrival rates for simulating a uniformized CTMC with time-varying arrival rates for one or more call types. |
static double[] |
getTimeDist(double[] times,
double startingTime,
double endingTime)
Constructs an array of length L + 1 giving the proportion of interval [a, b) taken by each interval [tj-1, tj). |
double[][] |
getTimeDist(double startingTime,
double endingTime)
Returns a 2D array with one row per call type. |
boolean |
hasChanges()
Returns true if and only if the arrival rate for at least one call type of the associated model changes with time. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RateChangeTransitions(CallCenter cc)
PoissonArrivalProcessWithTimeIntervals
is ignored; the associated arrival rate will remain
constant with time.
cc
- the call center from which to collect the information.Method Detail |
---|
public boolean hasChanges()
public double[][] getTimeDist(double startingTime, double endingTime)
getTimeDist(double[],double,double)
with the time of changes for call type k,
and the given values of startingTime and endingTime.
startingTime
- the starting time a.endingTime
- the ending time b.
public static double[] getTimeDist(double[] times, double startingTime, double endingTime)
times
- the sequence of times
t0,…, tL-1.startingTime
- the starting time a.endingTime
- the ending time b.
public RateChangeInfo[] generateRateChanges(RandomStream stream, double[][] timeDist, int ntr)
stream
- the random stream used to generate random vectors.timeDist
- the time distribution for each call type.ntr
- the total number of transitions.
|
ContactCenters V. 0.9.9. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |