Ejemplo n.º 1
0
  private void seatCustomer(MyWaiter mw, CustomerAgent customer, Table table) {

    print(mw.waiter.getName() + ", seat " + customer + " at " + table);
    table.setOccupant(customer);
    numTablesOccupied++;

    mw.waiter.msgSeatCustomer(customer, table.tableNumber);

    waitingCustomers.remove(customer);
    chooseNextWaiter();
    stateChanged();
  }