Package de.hsh.graja.core.result
Class GradingAspectGroupResult
- java.lang.Object
-
- de.hsh.graja.core.result.AbstractResultNode
-
- de.hsh.graja.core.result.AbstractGradingAspectResult
-
- de.hsh.graja.core.result.GradingAspectGroupResult
-
- All Implemented Interfaces:
ContentLogger
public class GradingAspectGroupResult extends AbstractGradingAspectResult
-
-
Constructor Summary
Constructors Constructor Description GradingAspectGroupResult(GradingAspectGroup aspectGroup)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addSubResult(AbstractGradingAspectResult gar)
boolean
calcIfScorePenalized()
double
calcRawScoreAchieved()
Returns the unweighted and non nullified achieved score.double
calcScoreAchievedAfterWeighting()
Returns the weighted score, that has not yet been nullified.double
calcScoreAchievedAfterWeightingAndNullification()
Returns the achieved score.Collection<Grade>
collectGrades()
int
countIncorrectSubResults()
int
countScorePenalizedSubResults()
int
countSubResults()
Iterable<? extends AbstractGradingAspectResult>
enumerateOrderedSubResults()
GradingAspectGroup
getAspect()
-
Methods inherited from class de.hsh.graja.core.result.AbstractGradingAspectResult
calcScoreMax, getAspectTitle, getAspectTypeDisplayname, isNullified
-
Methods inherited from class de.hsh.graja.core.result.AbstractResultNode
addItem, addLeadingCommentItem, addTrailingCommentItem, getAnchor, getDescriptionComment, getHeaderComment, getHeadline, getLeadingComment, getTrailingComment, setAnchor, setHeaderComment, setHeadline
-
-
-
-
Constructor Detail
-
GradingAspectGroupResult
public GradingAspectGroupResult(GradingAspectGroup aspectGroup)
-
-
Method Detail
-
addSubResult
public void addSubResult(AbstractGradingAspectResult gar)
-
getAspect
public GradingAspectGroup getAspect()
- Overrides:
getAspect
in classAbstractGradingAspectResult
-
enumerateOrderedSubResults
public Iterable<? extends AbstractGradingAspectResult> enumerateOrderedSubResults()
- Returns:
- results from aspects.
-
countSubResults
public int countSubResults()
-
countIncorrectSubResults
public int countIncorrectSubResults()
-
countScorePenalizedSubResults
public int countScorePenalizedSubResults()
-
calcRawScoreAchieved
public double calcRawScoreAchieved()
Description copied from class:AbstractResultNode
Returns 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:
calcRawScoreAchieved
in classAbstractResultNode
- Returns:
- the raw achieved score.
- See Also:
AbstractResultNode.calcRawScoreAchieved()
-
calcScoreAchievedAfterWeightingAndNullification
public double calcScoreAchievedAfterWeightingAndNullification()
Description copied from class:AbstractResultNode
Returns 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:
calcScoreAchievedAfterWeightingAndNullification
in classAbstractResultNode
- Returns:
- the achieved score. The weight and nullifications are included already.
- See Also:
AbstractResultNode.calcScoreAchievedAfterWeightingAndNullification()
-
calcScoreAchievedAfterWeighting
public double calcScoreAchievedAfterWeighting()
Description copied from class:AbstractResultNode
Returns 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:
calcScoreAchievedAfterWeighting
in classAbstractResultNode
- Returns:
- the weigthed achieved score. Nullifications are not included.
- See Also:
AbstractResultNode.calcScoreAchievedAfterWeighting()
-
calcIfScorePenalized
public boolean calcIfScorePenalized()
- Overrides:
calcIfScorePenalized
in classAbstractGradingAspectResult
-
collectGrades
public Collection<Grade> collectGrades()
- Specified by:
collectGrades
in classAbstractResultNode
-
-