Ejemplo n.º 1
0
 /**
  * Add an entry to the StartList rejecting any duplicate Bib assignments in the same race class It
  * is possible to have the same bib in a different classes in lower levels of races (e.g. C1 and
  * C2)
  *
  * @param racer
  * @param boatClass
  * @throws DuplicateBibException
  */
 public void addBoat(Racer racer, String boatClass) throws DuplicateBibException {
   if (count(racer.getBibNumber(), boatClass) < 1) {
     racers.add(racer);
     startList.add(new BoatEntry(racer, boatClass));
   } else {
     log.error(
         "Can't add bib "
             + racer.getBibNumber()
             + " for "
             + boatClass
             + " "
             + racer.getShortName()
             + " already used by "
             + whoIs(racer.getBibNumber(), boatClass));
     throw new DuplicateBibException();
   }
 }