示例#1
0
  /**
   * Check if a frame number is linked to a parity error (cannot decode)
   *
   * @param fn the frame number
   * @return true if the frame seems unable to be decoded by airprobe
   */
  public static boolean isParityErr(String fn) {

    // read dedicated channel (xS) line by line
    ArrayList<String> temp = General.readFile(file.getAbsolutePath() + "_" + timeslot + "S");

    // and check if e found a parity error linked to the fn
    for (int i = 0; i < temp.size(); i++) {
      if (General.RGX_PARITY.matcher(temp.get(i)).matches()) {
        Matcher recup_err = General.RGX_PARITY.matcher(temp.get(i));
        if (recup_err.find()) {
          if (recup_err.group(1).equals(fn)) ;
          return true;
        }
      }
    }

    return false;
  }