import umontreal.iro.lecuyer.rng.*; import umontreal.iro.lecuyer.randvar.*; import umontreal.iro.lecuyer.stat.Tally; import umontreal.iro.lecuyer.util.*; import java.io.*; public class CallCenterCRN extends CallCenter { Tally statQoS1 = new Tally ("stats on QoS for config.1"); Tally statDiffIndep = new Tally ("stats on difference with IRNs"); Tally statDiffCRN = new Tally ("stats on difference with CRNs"); int[] numAgents1, numAgents2; public CallCenterCRN (String fileName) throws IOException { super (fileName); numAgents1 = new int[numPeriods]; numAgents2 = new int[numPeriods]; for (int j=0; j < numPeriods; j++) numAgents1[j] = numAgents2[j] = numAgents[j]; } // Set the number of agents in each period j to the values in num. public void setNumAgents (int[] num) { for (int j=0; j < numPeriods; j++) numAgents[j] = num[j]; } public void simulateDiffCRN (int n) { double value1, value2; statQoS1.init(); statDiffIndep.init(); statDiffCRN.init(); for (int i=0; i