Class DefaultFormulaHelper
java.lang.Object
ch.tocco.nice2.optional.qualification.impl.drools.helper.DefaultFormulaHelper
- All Implemented Interfaces:
FormulaHelper
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncalculateGrade
(BigDecimal maxPoints, BigDecimal points) Compute the grade based on the points and the max pointsnode.getMaxPoints()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface ch.tocco.nice2.optional.qualification.api.drools.helper.FormulaHelper
calculate, validatePoints
-
Constructor Details
-
DefaultFormulaHelper
-
-
Method Details
-
calculateGrade
Description copied from interface:FormulaHelper
Compute the grade based on the points and the max pointsnode.getMaxPoints()
- Specified by:
calculateGrade
in interfaceFormulaHelper
- Parameters:
maxPoints
- the max points of the node a grade is calculated forpoints
- the points that were actually reached
-