Class PromotionEvaluationImpl
java.lang.Object
ch.tocco.nice2.optional.qualification.impl.drools.promotion.PromotionEvaluationImpl
- All Implemented Interfaces:
PromotionEvaluation,AutoCloseable
-
Constructor Summary
ConstructorsConstructorDescriptionPromotionEvaluationImpl(Entity user, Node qs, org.kie.api.KieBase knowledgeBase, FormulaHelper formulaHelper, GradeComparisonHelper gradeComparisonHelper, @Nullable Evaluation evaluation) PromotionEvaluationImpl(Entity user, Node qs, org.kie.api.KieBase knowledgeBase, FormulaHelper formulaHelper, GradeComparisonHelper gradeComparisonHelper, Input input) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddCorrectionPoints(CorrectionPoints correctionPoints) voidaddDispensed(IsDispensed isDispensed) voidaddDropGrades(DropGrades dropGrades) voidaddFormula(HasFormula hasFormula) voidvoidaddPresence(Presence presence) voidvoidaddThresholdPair(ThresholdPair thresholdPair) voidclose()evaluate()Runs the evaluation for thisPromotionEvaluation@Nullable Evaluation@Nullable NodegetQs()getStati()getUser()voidsetPromotionStatus(Collection<Status> stati)
-
Constructor Details
-
PromotionEvaluationImpl
public PromotionEvaluationImpl(Entity user, Node qs, org.kie.api.KieBase knowledgeBase, FormulaHelper formulaHelper, GradeComparisonHelper gradeComparisonHelper, @Nullable @Nullable Evaluation evaluation) -
PromotionEvaluationImpl
public PromotionEvaluationImpl(Entity user, Node qs, org.kie.api.KieBase knowledgeBase, FormulaHelper formulaHelper, GradeComparisonHelper gradeComparisonHelper, Input input)
-
-
Method Details
-
evaluate
Description copied from interface:PromotionEvaluationRuns the evaluation for thisPromotionEvaluation- Specified by:
evaluatein interfacePromotionEvaluation- Returns:
EvaluationResultholding the results of the evaluation.
-
getEvaluation
- Specified by:
getEvaluationin interfacePromotionEvaluation- Returns:
- the nearest Evaluation
-
addRating
-
getUser
- Specified by:
getUserin interfacePromotionEvaluation
-
getQs
- Specified by:
getQsin interfacePromotionEvaluation
-
getRatings
- Specified by:
getRatingsin interfacePromotionEvaluation
-
getGrades
- Specified by:
getGradesin interfacePromotionEvaluation
-
getDispenseds
- Specified by:
getDispensedsin interfacePromotionEvaluation
-
addThresholdPair
-
addDropGrades
-
addGrade
-
addCorrectionPoints
-
addDispensed
-
setPromotionStatus
-
getThresholdPairs
- Specified by:
getThresholdPairsin interfacePromotionEvaluation
-
getCorrectionPoints
- Specified by:
getCorrectionPointsin interfacePromotionEvaluation
-
getDropGrades
-
getStati
- Specified by:
getStatiin interfacePromotionEvaluation
-
addPresence
-
getPresences
-
addFormula
-
getHasFormulas
- Specified by:
getHasFormulasin interfacePromotionEvaluation
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfacePromotionEvaluation
-