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