예제 #1
0
 public synchronized boolean changeTableStateToStarting() {
   if (!getTable().getState().equals(TableState.READY_TO_START)) {
     // tournament is not ready, can't start
     return false;
   }
   if (!table.allSeatsAreOccupied()) {
     logger.debug("Not alle Seats are occupied: stop start tableId:" + table.getId());
     return false;
   }
   getTable().setState(TableState.STARTING);
   return true;
 }