public class Teller // a teller in the bank simulation { private Customer c; // teller services one customer at a time, this is the current customer (null if teller is idle) public Teller() // constructor just initializes customer to null, no customer currently { c=null; } public void newCustomer(Customer c) // new customer comes up to the teller, teller is now busy { this.c=c; } public void serviceCustomer() // in each minute of the simulation, if busy, the teller services the customer { // until the customer is done c.isServiced(); if(c.done()) c=null; } public boolean isBusy() // is the teller busy? If c is not null { return (c!=null); } }