示例#1
0
 public JudgingSection getSection(int section) {
   JudgingSection judgingSection = null;
   for (JudgingSection s : judgingSections) {
     if (s.getClientDeviceAttached()) {
       judgingSection = s;
       break;
     }
   }
   return judgingSection;
 }
示例#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();
 }