org.activemath.studentmodel2.evaluation
Class StudentEval

java.lang.Object
  extended by org.activemath.studentmodel2.evaluation.StudentEval

public class StudentEval
extends Object


Constructor Summary
StudentEval(String name)
          Constructor
 
Method Summary
 void addAnswerProb(String conceptId, Double answerProb)
           
 void addCorrect()
          Increment the correct answers count
 void addWrong()
          Increment the wrong answers count
 List getAnswerSeq()
           
 Map getConceptAnswerProbs()
           
 int getCorrectAnswers()
           
 double getScore()
          Get the score of the student (correctAnswers / allAnswers)
 String getUserId()
           
 int getWrongAnswers()
           
 void setAnswerSeq(List answerSeq)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StudentEval

public StudentEval(String name)
Constructor

Parameters:
name -
Method Detail

getScore

public double getScore()
Get the score of the student (correctAnswers / allAnswers)

Returns:
- The score in [0,1]

addCorrect

public void addCorrect()
Increment the correct answers count


addWrong

public void addWrong()
Increment the wrong answers count


getCorrectAnswers

public int getCorrectAnswers()
Returns:
the correctAnswers

getUserId

public String getUserId()
Returns:
the studentName

getWrongAnswers

public int getWrongAnswers()
Returns:
the wrongAnswers

addAnswerProb

public void addAnswerProb(String conceptId,
                          Double answerProb)

getConceptAnswerProbs

public Map getConceptAnswerProbs()
Returns:
the conceptAnswerProbs

getAnswerSeq

public List getAnswerSeq()
Returns:
the answerSeq

setAnswerSeq

public void setAnswerSeq(List answerSeq)
Parameters:
answerSeq - the answerSeq to set