Modifier and Type | Method and Description |
---|---|
Customer |
CheckoutLine.getCurrentCustomer()
Returns a reference to the customer currently at the front of the line
without removing the customer from the line.
|
Modifier and Type | Method and Description |
---|---|
List<Customer> |
CheckoutLine.getCustomersAsList()
Returns a list of this checkout line's queue of customers.
|
Queue<Customer> |
CheckoutLine.update(double currentTime)
Process as many customers as possible starting from the front of the queue
given the current simulation time
currentTime . |
Modifier and Type | Method and Description |
---|---|
void |
CheckoutLine.addCustomer(Customer c)
Add a customer to the back of the line.
|