public class CallCenterCallDist extends Object implements NewContactListener, ExitedContactListener
Constructor and Description |
---|
CallCenterCallDist(CallCenter cc)
Creates a new instance of CallCenterCallDist.
|
Modifier and Type | Method and Description |
---|---|
void |
blocked(Router r,
Contact c,
int bType) |
void |
dequeued(Router r,
DequeueEvent de) |
double[][] |
getCallTypeDistribution()
Returns the approximated mean proportion of each call type in the system.
|
double[][] |
getStateDistribution()
Returns the approximated state distribution of number of total calls in the system,
(of all call types).
|
static void |
main(String[] args)
This program uses simulation to estimate the distribution on the number
of calls in the system on the arrival of any call type.
|
void |
newContact(Contact c) |
void |
printResults()
Prints the results of the distribution.
|
void |
served(Router r,
EndServiceEvent en) |
public CallCenterCallDist(CallCenter cc)
public void newContact(Contact c)
newContact
in interface NewContactListener
public void blocked(Router r, Contact c, int bType)
blocked
in interface ExitedContactListener
public void dequeued(Router r, DequeueEvent de)
dequeued
in interface ExitedContactListener
public void served(Router r, EndServiceEvent en)
served
in interface ExitedContactListener
public double[][] getStateDistribution()
public double[][] getCallTypeDistribution()
public void printResults()
public static void main(String[] args) throws Exception
The arguments of the program:
args
- see the descriptionException