Class PromotionEvaluationImpl
java.lang.Object
ch.tocco.nice2.optional.qualification.impl.drools.promotion.PromotionEvaluationImpl
- All Implemented Interfaces:
PromotionEvaluation
,AutoCloseable
-
Constructor Summary
ConstructorDescriptionPromotionEvaluationImpl
(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 TypeMethodDescriptionvoid
addCorrectionPoints
(CorrectionPoints correctionPoints) void
addDispensed
(IsDispensed isDispensed) void
addDropGrades
(DropGrades dropGrades) void
addFormula
(HasFormula hasFormula) void
void
addPresence
(Presence presence) void
void
addThresholdPair
(ThresholdPair thresholdPair) void
close()
evaluate()
Runs the evaluation for thisPromotionEvaluation
@Nullable Evaluation
@Nullable Node
getQs()
getStati()
getUser()
void
setPromotionStatus
(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:PromotionEvaluation
Runs the evaluation for thisPromotionEvaluation
- Specified by:
evaluate
in interfacePromotionEvaluation
- Returns:
EvaluationResult
holding the results of the evaluation.
-
getEvaluation
- Specified by:
getEvaluation
in interfacePromotionEvaluation
- Returns:
- the nearest Evaluation
-
addRating
-
getUser
- Specified by:
getUser
in interfacePromotionEvaluation
-
getQs
- Specified by:
getQs
in interfacePromotionEvaluation
-
getRatings
- Specified by:
getRatings
in interfacePromotionEvaluation
-
getGrades
- Specified by:
getGrades
in interfacePromotionEvaluation
-
getDispenseds
- Specified by:
getDispenseds
in interfacePromotionEvaluation
-
addThresholdPair
-
addDropGrades
-
addGrade
-
addCorrectionPoints
-
addDispensed
-
setPromotionStatus
-
getThresholdPairs
- Specified by:
getThresholdPairs
in interfacePromotionEvaluation
-
getCorrectionPoints
- Specified by:
getCorrectionPoints
in interfacePromotionEvaluation
-
getDropGrades
-
getStati
- Specified by:
getStati
in interfacePromotionEvaluation
-
addPresence
-
getPresences
-
addFormula
-
getHasFormulas
- Specified by:
getHasFormulas
in interfacePromotionEvaluation
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfacePromotionEvaluation
-