Ejemplo n.º 1
0
 public boolean isLastGateInSection(int iGate) {
   for (JudgingSection s : judgingSections) {
     if (iGate == s.getLastGate()) {
       return true;
     }
   }
   return false;
 }
Ejemplo n.º 2
0
  public boolean isGateInSection(int iGate, int section) {
    if (section == 0) { // All Sections are represented by 0 /// fixme kludge
      return true;
    }
    int currSection = 1;
    for (JudgingSection s : judgingSections) {
      if (section == currSection) {
        if (iGate >= s.getFirstGate() && iGate <= s.getLastGate()) {
          // System.out.println(iGate + " is in section " + section);
          return true;
        }
      }
      currSection++;
    }
    //        System.out.println(iGate + " is NOT in section " + section);

    return false;
  }