private static void createTestCase(String name, double bandwidth,
                             double delay, int totalGridlet, int[] glLength,
                             int testNum) throws Exception
    {
        switch(testNum)
        {
            case 1:
                new TestCase1(name, bandwidth, delay, totalGridlet, glLength);
                break;

            case 2:
                new TestCase2(name, bandwidth, delay, totalGridlet, glLength);
                break;

            case 3:
                new TestCase3(name, bandwidth, delay, totalGridlet, glLength);
                break;

            case 4:
                new TestCase4(name, bandwidth, delay, totalGridlet, glLength);
                break;

            case 5:
                new TestCase5(name, bandwidth, delay, totalGridlet, glLength);
                break;

            case 6:
                new TestCase6(name, bandwidth, delay, totalGridlet, glLength);
                break;

            case 7:
                new TestCase7(name, bandwidth, delay, totalGridlet, glLength);
                break;

            case 8:
                new TestCase8(name, bandwidth, delay, totalGridlet, glLength);
                break;

            default:
                System.out.println("Not a recognized test case.");
                break;
        }
    }