Class KiePMMLPredicateASTFactory
- java.lang.Object
-
- org.kie.pmml.models.drools.ast.factories.KiePMMLAbstractPredicateASTFactory
-
- org.kie.pmml.models.drools.ast.factories.KiePMMLPredicateASTFactory
-
public class KiePMMLPredicateASTFactory extends KiePMMLAbstractPredicateASTFactory
Class used to generateKiePMMLDroolsRules out of aPredicate
-
-
Field Summary
-
Fields inherited from class org.kie.pmml.models.drools.ast.factories.KiePMMLAbstractPredicateASTFactory
predicateASTFactoryData
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddeclareRuleFromPredicate(Number toAccumulate, String statusToSet, KiePMMLReasonCodeAndValue reasonCodeAndValue, boolean isLastCharacteristic)Manage the givenPredicate.voiddeclareRuleFromPredicate(Object result, boolean isFinalLeaf)Manage the givenPredicate.static KiePMMLPredicateASTFactoryfactory(PredicateASTFactoryData predicateASTFactoryData)
-
-
-
Method Detail
-
factory
public static KiePMMLPredicateASTFactory factory(PredicateASTFactoryData predicateASTFactoryData)
-
declareRuleFromPredicate
public void declareRuleFromPredicate(Number toAccumulate, String statusToSet, KiePMMLReasonCodeAndValue reasonCodeAndValue, boolean isLastCharacteristic)
Manage the givenPredicate.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
- Parameters:
toAccumulate-statusToSet-reasonCodeAndValue-isLastCharacteristic-
-
declareRuleFromPredicate
public void declareRuleFromPredicate(Object result, boolean isFinalLeaf)
Manage the givenPredicate.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
- Parameters:
result-isFinalLeaf-
-
-