public void out() { System.out.println("同事A:请求同事B做好自己份内事"); super.mediator.execute("ColleagueB", "self"); }
public void buyIBMComputer(int number) { super.mediator.execute("purchase.buy", number); }
public void sellIBMComputer(int number) { super.mediator.execute("sale.sell", number); System.out.println("銷售IBM電腦:" + number); }
public void offSale() { super.mediator.execute("sale.offsell"); }
public void clearStock() { System.out.println("清理存貨數量為:" + CUMPUTER_NUMBER); super.mediator.execute("stock.clear"); }