public class KiePMMLPredicateASTFactory extends KiePMMLAbstractPredicateASTFactory
KiePMMLDroolsRules out of a PredicatepredicateASTFactoryData| Modifier and Type | Method and Description |
|---|---|
void |
declareRuleFromPredicate(Number toAccumulate,
String statusToSet,
KiePMMLReasonCodeAndValue reasonCodeAndValue,
boolean isLastCharacteristic)
Manage the given
Predicate. |
void |
declareRuleFromPredicate(Object result,
boolean isFinalLeaf)
Manage the given
Predicate. |
static KiePMMLPredicateASTFactory |
factory(PredicateASTFactoryData predicateASTFactoryData) |
public static KiePMMLPredicateASTFactory factory(PredicateASTFactoryData predicateASTFactoryData)
public void declareRuleFromPredicate(Number toAccumulate, String statusToSet, KiePMMLReasonCodeAndValue reasonCodeAndValue, boolean isLastCharacteristic)
Predicate.
It creates rules that, in the rhs, set an accumulation value
At this point of the execution, predicate could be:
1) @see True
2) @see SimplePredicate
3) @see CompoundPredicate
4) @see SimpleSetPredicate
toAccumulate - statusToSet - reasonCodeAndValue - isLastCharacteristic - public void declareRuleFromPredicate(Object result, boolean isFinalLeaf)
Predicate.
It creates rules that, in the rhs, eventually set a final result
At this point of the execution, predicate could be:
1) @see True
2) @see SimplePredicate
3) @see CompoundPredicate
4) @see SimpleSetPredicate
result - isFinalLeaf - Copyright © 2001–2021 JBoss by Red Hat. All rights reserved.