Examples of FastCustomer


Examples of bankqueue.customer.FastCustomer

                sw.toString());
    }

    @Test
    public void oneFastCustomer() {
        events.add(new CustomerArriveEvent(0, new FastCustomer(0, 5), bank));
        bank.dryrun(events, sw);
        assertEquals(concat(
                "time     0     FastCustomer(    0) arrives, service time = 5",
                "time     0     FastCustomer(    0) sits at kFast window, will leave at 5",
                "time     5     FastCustomer(    0) leaves window kFast",
View Full Code Here

Examples of bankqueue.customer.FastCustomer

                sw.toString());
    }

    @Test
    public void twoFastCustomers() {
        events.add(new CustomerArriveEvent(0, new FastCustomer(0, 5), bank));
        events.add(new CustomerArriveEvent(10, new FastCustomer(1, 8), bank));
        bank.dryrun(events, sw);
        assertEquals(concat(
                "time     0     FastCustomer(    0) arrives, service time = 5",
                "time     0     FastCustomer(    0) sits at kFast window, will leave at 5",
                "time     5     FastCustomer(    0) leaves window kFast",
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.