public class DelayIndepScenarioGen extends Object implements DelayScenarioGenerator
StochFluidStaffingDelaySc
.
Consider only 1 period (first period only).
Assume that the state count probability of each call type is independent from
other call types.
Generate a continuous-time markov chain for each call type with the delay target.
To generate a scenario, generate randomly and independently a state for each call type.Constructor and Description |
---|
DelayIndepScenarioGen(CallCenter cc) |
Modifier and Type | Method and Description |
---|---|
double[] |
computeStateDistribution(int numScenario,
double delayTarget)
Generate the state probability distribution of the total number of calls in the system.
|
int |
findMinServerDelay(double delayTarget)
Find the minimum number of servers for the aggregate system to satisfy the delay target.
|
double[][] |
generateScenario(int numScenario,
double delayTarget)
Generate the scenarios randomly.
|
void |
init() |
static void |
main(String[] args) |
public DelayIndepScenarioGen(CallCenter cc)
public void init()
public double[][] generateScenario(int numScenario, double delayTarget)
generateScenario
in interface DelayScenarioGenerator
numScenario
- the number of scenario to generate.delayTarget
- the global delay target.public int findMinServerDelay(double delayTarget)
DelayErlangCScenarioGen.findMinServerDelay(double)
.findMinServerDelay
in interface DelayScenarioGenerator
delayTarget
- the delay target.public double[] computeStateDistribution(int numScenario, double delayTarget)
numScenario
- the number of scenario to be used to estimate the probability distribution.delayTarget
- the global delay target.