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