org.activemath.feedback.symptoms
Class Solution

java.lang.Object
  extended by org.activemath.feedback.symptoms.Symptom
      extended by org.activemath.feedback.symptoms.Solution

public class Solution
extends Symptom


Field Summary
 
Fields inherited from class org.activemath.feedback.symptoms.Symptom
AVERAGE, GOOD, LONG, name, OK, POOR, SHORT
 
Constructor Summary
Solution(String exercise, String rating)
          Creates a solution object representing the fact that the user tried to solve the given exercise with the given rating.
 
Method Summary
 String getExercise()
           
 String getRating()
           
protected  String renderParams()
           
 
Methods inherited from class org.activemath.feedback.symptoms.Symptom
render
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Solution

public Solution(String exercise,
                String rating)
Creates a solution object representing the fact that the user tried to solve the given exercise with the given rating.

Parameters:
exercise - the exercise that the user tried to solve
rating - the rating she got. (one of good, average or poor)
Method Detail

renderParams

protected String renderParams()
Specified by:
renderParams in class Symptom

getExercise

public String getExercise()
Returns:
Returns the exercise.

getRating

public String getRating()
Returns:
Returns the rating.