Ejemplo n.º 1
0
 public JudgingSection getSection(int section) {
   JudgingSection judgingSection = null;
   for (JudgingSection s : judgingSections) {
     if (s.getClientDeviceAttached()) {
       judgingSection = s;
       break;
     }
   }
   return judgingSection;
 }
Ejemplo n.º 2
0
 public String getSectionsConnectedNamesAsString() {
   StringBuffer sb = new StringBuffer();
   boolean first = true;
   for (JudgingSection s : judgingSections) {
     if (s.getClientDeviceAttached()) {
       if (!first) {
         sb.append(",");
       }
       first = false;
       sb.append(s.getSectionNbr());
     }
   }
   if (sb.length() == 0) {
     sb.append(SECTIONS_NONE);
   }
   return sb.toString();
 }