The GradeCalculator class provides methods for grades.
More...
#include "grades/internal/GradeCalculator.h"
|
void | validatorChanged () |
|
void | targetHitsPerMinuteChanged () |
|
void | useNetHitsForGradingChanged () |
|
void | gradingMethodChanged () |
|
void | gradeChanged () |
|
|
| GradeCalculator () |
|
IExerciseValidator * | validator () const |
|
void | setValidator (IExerciseValidator *newValidator) |
|
int | targetHitsPerMinute (void) const |
|
void | setTargetHitsPerMinute (int newTargetHitsPerMinute) |
|
bool | useNetHitsForGrading (void) const |
|
void | setUseNetHitsForGrading (bool newUseNetHitsForGrading) |
|
const ClassManager::GradingMethod & | gradingMethod (void) const |
|
void | setGradingMethod (const ClassManager::GradingMethod &newGradingMethod) |
|
const QString & | grade (void) const |
|
|
IExerciseValidator * | m_validator = nullptr |
|
int | m_targetHitsPerMinute = 0 |
|
bool | m_useNetHitsForGrading = true |
|
ClassManager::GradingMethod | m_gradingMethod = ClassManager::GradingMethod_Numbers |
|
QString | m_grade |
|
The GradeCalculator class provides methods for grades.
- Since
- Open-Typer 5.1.0
◆ GradeCalculator()
GradeCalculator::GradeCalculator |
( |
| ) |
|
◆ updateGrade()
void GradeCalculator::updateGrade |
( |
void |
| ) |
|
|
private |
Calculates the grade and updates the grade property.
◆ validator()
◆ grade
const QString & GradeCalculator::grade |
|
read |
◆ gradingMethod
const ClassManager::GradingMethod & GradeCalculator::gradingMethod |
|
readwrite |
The grading method, for example numbers or letters.
Default value: Settings::gradingMethod
◆ targetHitsPerMinute
int GradeCalculator::targetHitsPerMinute |
|
readwrite |
Number of hits per minute for the best grade.
◆ useNetHitsForGrading
bool GradeCalculator::useNetHitsForGrading |
|
readwrite |
Whether to use net hits per minute instead of gross hits for grading.
Default value: Settings::gradeNetHits()
The documentation for this class was generated from the following files: