org.activemath.studentmodel2.evaluation
Class ExerciseEval

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

public class ExerciseEval
extends Object


Constructor Summary
ExerciseEval(String name)
          Constructor
 
Method Summary
 void addCorrect()
          Increment the correct answers count
 void addStudentAnswer(String studentId, boolean answer)
           
 void addWrong()
          Increment the wrong answers count
 CompetencyLevel getCompetencyLevel()
           
 int getCorrectAnswers()
           
 Difficulty getDifficulty()
           
 String getExerciseId()
           
 List getForIds()
           
 double getScore()
          Get the score of the student (correctAnswers / allAnswers)
 int getWrongAnswers()
           
 void setCompetencyLevel(CompetencyLevel competencyLevel)
           
 void setDifficulty(Difficulty difficulty)
           
 void setForIds(List forIds)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExerciseEval

public ExerciseEval(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]

addStudentAnswer

public void addStudentAnswer(String studentId,
                             boolean answer)

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

getExerciseId

public String getExerciseId()
Returns:
the studentName

getWrongAnswers

public int getWrongAnswers()
Returns:
the wrongAnswers

getCompetencyLevel

public CompetencyLevel getCompetencyLevel()
Returns:
the competencyLevel

setCompetencyLevel

public void setCompetencyLevel(CompetencyLevel competencyLevel)
Parameters:
competencyLevel - the competencyLevel to set

getDifficulty

public Difficulty getDifficulty()
Returns:
the difficulty

setDifficulty

public void setDifficulty(Difficulty difficulty)
Parameters:
difficulty - the difficulty to set

getForIds

public List getForIds()
Returns:
the forIds

setForIds

public void setForIds(List forIds)
Parameters:
forIds - the forIds to set