public class MCExerciseResult
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
QUESTION_FULLY_CORRECT |
static int |
QUESTION_NOT_EDITED |
static int |
QUESTION_PARTIALLY_CORRECT |
static int |
QUESTION_TOTALLY_WRONG |
Constructor and Description |
---|
MCExerciseResult() |
Modifier and Type | Method and Description |
---|---|
void |
addAnswer(MathMLSerializable answer)
Adds a MathML capable object as an answer to this exercise.
|
void |
addAnswer(MathMLSerializable[] answerParts)
Adds a list of MathML capable objects as an answer to this exercise.
|
void |
addAnswer(MathMLSerializable[] preLabel,
MathMLSerializable answer)
Adds a MathML capable object and a preceding text as an answer to this
exercise.
|
void |
addAnswer(MathMLSerializable[] preLabel,
MathMLSerializable answer,
MathMLSerializable[] postLabel)
Adds a MathML capable object, a preceding and a following text as
an answer to this exercise.
|
void |
addAnswer(java.lang.String answer)
Adds an answer text to this exercise result.
|
void |
addAnswer(java.lang.String preLabel,
MathMLSerializable answer)
Adds a MathML capable object and a preceding text as an answer to this
exercise.
|
void |
addAnswer(java.lang.String preLabel,
MathMLSerializable[] answers)
Adds a list of MathML capable objects and a preceding text as an answer
to this exercise.
|
void |
addAnswer(java.lang.String preLabel,
MathMLSerializable[] answers,
java.lang.String postLabel)
Adds a list of MathML capable objects, a preceding and a closing text as
an answer to this exercise.
|
void |
addAnswer(java.lang.String preLabel,
MathMLSerializable answer,
java.lang.String postLabel)
Adds a MathML capable object, a preceding and a closing text as an answer
to this exercise.
|
void |
addExplanation(MathMLSerializable explanation)
Adds a MathML capable object as an explanation to this exercise result.
|
void |
addExplanation(MathMLSerializable[] explanationParts)
Adds a list of MathML capable objects as an explanation to this exercise
result.
|
void |
addExplanation(java.lang.String explanation)
Adds an explanation text to this exercise result.
|
void |
addExplanation(java.lang.String preLabel,
MathMLSerializable explanation)
Adds a MathML capable object and a preceding text as an explanation to
this exercise result.
|
void |
addExplanation(java.lang.String preLabel,
MathMLSerializable[] explanations)
Adds a list of MathML capable objects and a preceding text as an
explanation to this exercise result.
|
void |
addExplanation(java.lang.String preLabel,
MathMLSerializable[] explanations,
java.lang.String postLabel)
Adds a list of MathML capable objects, a preceding and closing text as an
explanation to this exercise result.
|
void |
addExplanation(java.lang.String preLabel,
MathMLSerializable explanation,
java.lang.String postLabel)
Adds a MathML capable object, a preceding and closing text as an
explanation to this exercise result.
|
void |
addSolution(MathMLSerializable solution)
Adds a MathML capable object as a solution to this exercise result.
|
void |
addSolution(MathMLSerializable[] solutionParts)
Adds a list of MathML capable objects as a solution to this exercise
result.
|
void |
addSolution(MathMLSerializable[] preLabel,
MathMLSerializable solution)
Adds a list of MathML capable objects and a preceding text as a solution
to this exercise result.
|
void |
addSolution(MathMLSerializable[] preLabel,
MathMLSerializable solution,
MathMLSerializable[] postLabel)
Adds a list of MathML capable objects, a preceding and following text as
a solution to this exercise result.
|
void |
addSolution(java.lang.String solution)
Adds a solution text to this exercise result.
|
void |
addSolution(java.lang.String preLabel,
MathMLSerializable solution)
Adds a MathML capable object and a preceding text as a solution to this
exercise result.
|
void |
addSolution(java.lang.String preLabel,
MathMLSerializable[] solutions)
Adds a list of MathML capable objects and a preceding text as a solution
to this exercise result.
|
void |
addSolution(java.lang.String preLabel,
MathMLSerializable[] solutions,
java.lang.String postLabel)
Adds a list of MathML capable objects, a preceding and closing text as a
solution to this exercise result.
|
void |
addSolution(java.lang.String preLabel,
MathMLSerializable solution,
java.lang.String postLabel)
Adds a MathML capable object, a preceding and closing text as a solution
to this exercise result.
|
void |
addSubResult(MCExerciseResult answer) |
void |
addTask(MathMLSerializable[] taskParts)
Adds a list of MathML capable objects as a task to this exercise.
|
void |
addTask(java.lang.String task)
Adds a task text to this exercise result.
|
void |
addToScore(double amount)
Adds the given amount to the score of this exercise result.
|
MathMLSerializable[][] |
getAnswers()
Returns a list of all answers to this exercise where each entry consists
of a list of MathML capable objects per row.
|
MathMLSerializable[][] |
getExplanations()
Returns a list of all explanations to this exercise where each entry
consists of a list of MathML capable objects per row.
|
int |
getQuestionCorrection()
Returns a constant describing the score literarily.
|
double |
getScore()
Returns the score of this exercise result.
|
MathMLSerializable[][] |
getSolutions()
Returns a list of all solutions to this exercise where each entry
consists of a list of MathML capable objects per row.
|
MathMLSerializable[][] |
getTask()
Returns a list of the task for this exercise where each entry consists
of a list of MathML capable objects per row.
|
boolean |
isConditionallyCorrected() |
boolean |
isFullScore()
Returns if the given amount of points is the maximum score.
|
void |
setConditionallyCorrected(boolean conditionallyCorrected) |
void |
setFullScore(double val) |
void |
setScore(double score)
Sets the score for this exercise result.
|
public static final int QUESTION_NOT_EDITED
public static final int QUESTION_FULLY_CORRECT
public static final int QUESTION_PARTIALLY_CORRECT
public static final int QUESTION_TOTALLY_WRONG
public int getQuestionCorrection()
QUESTION_FULLY_CORRECT
,
QUESTION_PARTIALLY_CORRECT
,
QUESTION_TOTALLY_WRONG
,
QUESTION_NOT_EDITED
public void addSubResult(MCExerciseResult answer)
public void addTask(java.lang.String task)
task
- a textpublic void addTask(MathMLSerializable[] taskParts)
taskParts
- a list of MathML capable objectspublic MathMLSerializable[][] getTask()
public void addAnswer(java.lang.String answer)
answer
- a textpublic void addAnswer(MathMLSerializable answer)
answer
- a MathML capable objectpublic void addAnswer(MathMLSerializable[] preLabel, MathMLSerializable answer)
preLabel
- a preceding text as MathML objectsanswer
- a MathML capable objectpublic void addAnswer(MathMLSerializable[] preLabel, MathMLSerializable answer, MathMLSerializable[] postLabel)
preLabel
- a preceding text as MathML objectspostLabel
- a following text as MathML objectsanswer
- a MathML capable objectpublic void addAnswer(java.lang.String preLabel, MathMLSerializable answer)
preLabel
- a preceding textanswer
- a MathML capable objectpublic void addAnswer(java.lang.String preLabel, MathMLSerializable[] answers)
preLabel
- a preceding textanswers
- a list of MathML capable objectspublic void addAnswer(java.lang.String preLabel, MathMLSerializable[] answers, java.lang.String postLabel)
preLabel
- a preceding textanswers
- a list of MathML capable objectspostLabel
- a closing textpublic void addAnswer(java.lang.String preLabel, MathMLSerializable answer, java.lang.String postLabel)
preLabel
- a preceding textanswer
- a MathML capable objectpostLabel
- a closing textpublic void addAnswer(MathMLSerializable[] answerParts)
answerParts
- a list of MathML capable objectspublic MathMLSerializable[][] getAnswers()
public void addSolution(java.lang.String solution)
solution
- a textpublic void addSolution(MathMLSerializable solution)
solution
- a MathML capable objectpublic void addSolution(java.lang.String preLabel, MathMLSerializable solution)
preLabel
- a preceding textsolution
- a MathML capable objectpublic void addSolution(MathMLSerializable[] preLabel, MathMLSerializable solution)
preLabel
- a preceding text as MathML objectssolutions
- a list of MathML capable objectspublic void addSolution(MathMLSerializable[] preLabel, MathMLSerializable solution, MathMLSerializable[] postLabel)
preLabel
- a preceding text as MathML objectspostLabel
- a following text as MathML objectssolutions
- a list of MathML capable objectspublic void addSolution(java.lang.String preLabel, MathMLSerializable[] solutions)
preLabel
- a preceding textsolutions
- a list of MathML capable objectspublic void addSolution(java.lang.String preLabel, MathMLSerializable[] solutions, java.lang.String postLabel)
preLabel
- a preceding textsolutions
- a list of MathML capable objectspostLabel
- a closing textpublic void addSolution(java.lang.String preLabel, MathMLSerializable solution, java.lang.String postLabel)
preLabel
- a preceding textsolution
- a list of MathML capable objectpostLabel
- a closing textpublic void addSolution(MathMLSerializable[] solutionParts)
solutionParts
- a list of MathML capable objectspublic MathMLSerializable[][] getSolutions()
public void addExplanation(java.lang.String explanation)
explanation
- a textpublic void addExplanation(MathMLSerializable explanation)
explanation
- a MathML capable objectpublic void addExplanation(java.lang.String preLabel, MathMLSerializable explanation)
preLabel
- a preceding textexplanation
- a MathML capable objectpublic void addExplanation(java.lang.String preLabel, MathMLSerializable[] explanations)
preLabel
- a preceding textexplanations
- a list of MathML capable objectspublic void addExplanation(java.lang.String preLabel, MathMLSerializable[] explanations, java.lang.String postLabel)
preLabel
- a preceding textexplanations
- a list of MathML capable objectspostLabel
- a closing textpublic void addExplanation(java.lang.String preLabel, MathMLSerializable explanation, java.lang.String postLabel)
preLabel
- a preceding textexplanation
- a list of MathML capable objectpostLabel
- a closing textpublic void addExplanation(MathMLSerializable[] explanationParts)
explanationParts
- a list of MathML capable objectspublic MathMLSerializable[][] getExplanations()
public void setFullScore(double val)
public double getScore()
-1
if the
exercise was not editedpublic void setScore(double score)
score
- a number between 0 and 1 (both inclusive); -1
if
the exercise was not editedpublic void addToScore(double amount)
amount
- number between 0 and 1 (both inclusive)public boolean isFullScore()
score
- a number greater or equal zeropublic void setConditionallyCorrected(boolean conditionallyCorrected)
public boolean isConditionallyCorrected()
Further documentation and examples can be found under www.mathletfactory.de.