Ejemplo n.º 1
0
 /**
  * When a customer or waiter is clicked, this function calls updatedInfoPanel() from the main gui
  * so that person's information will be shown
  *
  * @param type indicates whether the person is a customer or waiter
  * @param string name of person
  */
 public void showCustomerInfo(String inp) {
   for (int i = 0; i < customers.size(); i++) {
     MarketCustomer temp = customers.get(i);
     if (temp.getName() == inp) {
       customerPanel.updateCustomer(temp);
       gui.updateCustomerInformationPanel(temp);
       customerPanel.updateCustomer(temp);
     }
   }
 }
Ejemplo n.º 2
0
 public void showWaiterInfo(String name) {
   for (int i = 0; i < waiters.size(); i++) {
     MarketWorkerAgent temp = waiters.get(i);
     if (temp.getName() == name) {
       // waiterPanel.updateWaiter(temp);
       gui.updateWaiterInformationPanel(temp);
       // waiterPanel.updateWaiter(temp);
     }
   }
 }
Ejemplo n.º 3
0
 public void refresh() {
   gui.updateLastCustomer();
   gui.updateLastWaiter();
 }