Beispiel #1
0
 /** @return The total word count of studied parts */
 public int getTotalStudyLength() {
   int Length = 0;
   QQStudyPart QPart;
   for (int i = 0; i < QParts.size(); i++) {
     QPart = QParts.get(i);
     if (QPart.getStart() > 0) Length += QPart.getLength();
   }
   return Length;
 }
Beispiel #2
0
 public int getTotalCorrect() {
   int Tot = 0;
   QQStudyPart QPart;
   for (int i = 0; i < QParts.size(); i++) {
     QPart = QParts.get(i);
     if (QPart.getStart() > 0) Tot += QPart.getNumCorrect();
   }
   return Tot;
 }
Beispiel #3
0
 public int getTotalQuesCount() {
   int Tot = 0;
   QQStudyPart QPart;
   for (int i = 0; i < QParts.size(); i++) {
     QPart = QParts.get(i);
     if (QPart.getStart() > 0) Tot += QPart.getNumQuestions();
   }
   return Tot;
 }
Beispiel #4
0
 public String getStudyParts() {
   String tokens = "";
   QQStudyPart currentPart;
   for (int i = 0; i < QParts.size(); i++) {
     currentPart = QParts.get(i);
     tokens += String.valueOf(currentPart.getStart()) + ",";
     tokens += String.valueOf(currentPart.getNonZeroLength()) + ",";
     tokens += String.valueOf(currentPart.getNumCorrect()) + ",";
     tokens += String.valueOf(currentPart.getNumQuestions()) + ",";
     tokens += String.valueOf(currentPart.getAvgLevel());
     if (i < QParts.size() - 1) tokens += ";"; // Skip ; after the last token
   }
   return tokens;
 }