Class Result

All Implemented Interfaces:
ContentLogger

public class Result extends FailableAbstractResultNode
  • Constructor Details

    • Result

      public Result(Request request, Sequence initialLeadingComments)
  • Method Details

    • setFailureResult

      public void setFailureResult()
      Specified by:
      setFailureResult in class FailableAbstractResultNode
    • getAssignmentResult

      public AssignmentResult getAssignmentResult()
    • collectGrades

      public Collection<Grade> collectGrades()
      Specified by:
      collectGrades in class AbstractResultNode
    • getRequest

      public Request getRequest()
    • 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 class AbstractResultNode
      Returns:
      the achieved score. The weight and nullifications are included already.
    • 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 class AbstractResultNode
      Returns:
      the weigthed achieved score. Nullifications are not included.
    • 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 class AbstractResultNode
      Returns:
      the raw achieved score.
    • setAssignmentResult

      public void setAssignmentResult(AssignmentResult assignmentResult)