Package de.hsh.graja.core.result
Class AssignmentResult
java.lang.Object
de.hsh.graja.core.result.AbstractResultNode
de.hsh.graja.core.result.FailableAbstractResultNode
de.hsh.graja.core.result.AssignmentResult
- All Implemented Interfaces:
ContentLogger
-
Constructor Summary
ConstructorsConstructorDescriptionAssignmentResult(Assignment assignment) AssignmentResult(Assignment assignment, GradingAspectGroupResult cr) -
Method Summary
Modifier and TypeMethodDescriptiondoubleReturns the unweighted and non nullified achieved score.doubleReturns the weighted score, that has not yet been nullified.doubleReturns the achieved score.doublereturns the maximum score achievable.doublereturns the percentage of successful tests. value between and including 0 and 1.voidvoidvoidsetTimeout(boolean timeout) Methods inherited from class de.hsh.graja.core.result.FailableAbstractResultNode
fail, fail, failMethods inherited from class de.hsh.graja.core.result.AbstractResultNode
addItem, addLeadingCommentItem, addTrailingCommentItem, getAnchor, getDescriptionComment, getHeaderComment, getHeadline, getLeadingComment, getTrailingComment, setAnchor, setHeaderComment, setHeadline
-
Constructor Details
-
AssignmentResult
-
AssignmentResult
-
-
Method Details
-
calcScoreMax
public double calcScoreMax()returns the maximum score achievable. -
getSuccessRate
public double getSuccessRate()returns the percentage of successful tests. value between and including 0 and 1. -
getAssignment
- Returns:
- the associated assignment
-
calcScoreAchievedAfterWeightingAndNullification
public double calcScoreAchievedAfterWeightingAndNullification()Description copied from class:AbstractResultNodeReturns the achieved score. The achieved score is calculated in three steps:
- First the mere score without any postprocessing is calculated. We call this the "raw achieved score".
- Second, the score gets multiplied by a weight. We call the resulting score the "achieved score after weighting"
- Last, the score is processed by nullification conditions. We call the resulting score the "achieved score after weighting and nullification".
- Specified by:
calcScoreAchievedAfterWeightingAndNullificationin classAbstractResultNode- Returns:
- the achieved score. The weight and nullifications are included already.
-
calcScoreAchievedAfterWeighting
public double calcScoreAchievedAfterWeighting()Description copied from class:AbstractResultNodeReturns the weighted score, that has not yet been nullified. The achieved score is calculated in three steps:
- First the mere score without any postprocessing is calculated. We call this the "raw achieved score".
- Second, the score gets multiplied by a weight. We call the resulting score the "achieved score after weighting"
- Last, the score is processed by nullification conditions. We call the resulting score the "achieved score after weighting and nullification".
- Specified by:
calcScoreAchievedAfterWeightingin classAbstractResultNode- Returns:
- the weigthed achieved score. Nullifications are not included.
-
calcRawScoreAchieved
public double calcRawScoreAchieved()Description copied from class:AbstractResultNodeReturns the unweighted and non nullified achieved score. The achieved score is calculated in three steps:
- First the mere score without any postprocessing is calculated. We call this the "raw achieved score".
- Second, the score gets multiplied by a weight. We call the resulting score the "achieved score after weighting"
- Last, the score is processed by nullification conditions. We call the resulting score the "achieved score after weighting and nullification".
- Specified by:
calcRawScoreAchievedin classAbstractResultNode- Returns:
- the raw achieved score.
-
collectGrades
- Specified by:
collectGradesin classAbstractResultNode
-
setGradingResults
-
getGradingResults
-
setFailureResult
public void setFailureResult()- Specified by:
setFailureResultin classFailableAbstractResultNode
-
setTimeout
public void setTimeout(boolean timeout)
-